summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-ux500/dma-db5500.c
diff options
context:
space:
mode:
authorLee Jones <lee.jones@linaro.org>2012-02-06 11:22:21 -0800
committerArnd Bergmann <arnd@arndb.de>2012-02-13 06:31:29 +0000
commit18403424c4fe5bac509bf52343f5d5407d45ee3a (patch)
treeae9a0f3056c712ee7f8042d667b267bedda92abf /arch/arm/mach-ux500/dma-db5500.c
parentd65b4e98d7ea3038b767b70fe8be959b2913f16d (diff)
downloadblackbird-obmc-linux-18403424c4fe5bac509bf52343f5d5407d45ee3a.tar.gz
blackbird-obmc-linux-18403424c4fe5bac509bf52343f5d5407d45ee3a.zip
ARM: ux500: pass parent pointer to each platform device
This patch provides a means for any device within ux500 platform code to allocate its own parent. This is particularly prudent with the introduction of /sys/devices/socX, as a device can now proclaim to be integral part of an SoC, rather than a more generic platform device. Latter patches make good use of this functionality. Signed-off-by: Lee Jones <lee.jones@linaro.org> Acked-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'arch/arm/mach-ux500/dma-db5500.c')
-rw-r--r--arch/arm/mach-ux500/dma-db5500.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/arm/mach-ux500/dma-db5500.c b/arch/arm/mach-ux500/dma-db5500.c
index 1cfab68ae417..41e9470fa0e6 100644
--- a/arch/arm/mach-ux500/dma-db5500.c
+++ b/arch/arm/mach-ux500/dma-db5500.c
@@ -125,10 +125,11 @@ static struct platform_device dma40_device = {
.resource = dma40_resources
};
-void __init db5500_dma_init(void)
+void __init db5500_dma_init(struct device *parent)
{
int ret;
+ dma40_device.dev.parent = parent;
ret = platform_device_register(&dma40_device);
if (ret)
dev_err(&dma40_device.dev, "unable to register device: %d\n", ret);
OpenPOWER on IntegriCloud