summaryrefslogtreecommitdiffstats
path: root/drivers/amba
diff options
context:
space:
mode:
authorJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>2013-02-12 12:09:39 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2013-02-12 20:31:44 +0100
commit8428a8c6e30f232cce3fe789bf32493a8e056916 (patch)
tree4e95ddcaee307b0b5136048b34df34feb3741243 /drivers/amba
parentafab6ac78303dd86bd7de62f17b32daf444f8d1a (diff)
downloadbarebox-8428a8c6e30f232cce3fe789bf32493a8e056916.tar.gz
barebox-8428a8c6e30f232cce3fe789bf32493a8e056916.tar.xz
amba: add oftree probe support
move ARM_AMBA Kconfig to drivers/amba/Kconfig Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers/amba')
-rw-r--r--drivers/amba/Kconfig2
-rw-r--r--drivers/amba/bus.c1
2 files changed, 3 insertions, 0 deletions
diff --git a/drivers/amba/Kconfig b/drivers/amba/Kconfig
new file mode 100644
index 0000000000..d1cba6a9b3
--- /dev/null
+++ b/drivers/amba/Kconfig
@@ -0,0 +1,2 @@
+config ARM_AMBA
+ bool
diff --git a/drivers/amba/bus.c b/drivers/amba/bus.c
index d1ab53ca72..dcb52bf73d 100644
--- a/drivers/amba/bus.c
+++ b/drivers/amba/bus.c
@@ -212,6 +212,7 @@ struct amba_device *amba_device_alloc(const char *name, int id, resource_size_t
dev->res.start = base;
dev->res.end = base + size - 1;
dev->res.flags = IORESOURCE_MEM;
+ dev->dev.resource = &dev->res;
return dev;
}