summaryrefslogtreecommitdiffstats
path: root/drivers/amba/bus.c
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/bus.c
parentafab6ac78303dd86bd7de62f17b32daf444f8d1a (diff)
downloadbarebox-8428a8c6e30f232cce3fe789bf32493a8e056916.tar.gz
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/bus.c')
-rw-r--r--drivers/amba/bus.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/amba/bus.c b/drivers/amba/bus.c
index d1ab53c..dcb52bf 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;
}