summaryrefslogtreecommitdiff
path: root/arch/ppc/syslib/of_device.c
diff options
context:
space:
mode:
authorAnton Altaparmakov <aia21@cantab.net>2005-09-26 10:50:29 +0100
committerAnton Altaparmakov <aia21@cantab.net>2005-09-26 10:50:29 +0100
commite8c2cd99a3933d93413910bc93cbd5b53177110b (patch)
treeea4c1d63b1bdeb9ef1aacacad0ac9c7dc0768fdc /arch/ppc/syslib/of_device.c
parent5a8c0cc32bb6e029cd9c36f655c6b0955b0d9967 (diff)
parent8ddec7460d2f5db3ac35812c03676b1473d1d668 (diff)
downloadlinux-3.10-e8c2cd99a3933d93413910bc93cbd5b53177110b.tar.gz
linux-3.10-e8c2cd99a3933d93413910bc93cbd5b53177110b.tar.bz2
linux-3.10-e8c2cd99a3933d93413910bc93cbd5b53177110b.zip
Merge branch 'master' of /home/src/linux-2.6/
Diffstat (limited to 'arch/ppc/syslib/of_device.c')
-rw-r--r--arch/ppc/syslib/of_device.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/arch/ppc/syslib/of_device.c b/arch/ppc/syslib/of_device.c
index da8a0f2128d..93c7231ea70 100644
--- a/arch/ppc/syslib/of_device.c
+++ b/arch/ppc/syslib/of_device.c
@@ -234,7 +234,9 @@ void of_device_unregister(struct of_device *ofdev)
device_unregister(&ofdev->dev);
}
-struct of_device* of_platform_device_create(struct device_node *np, const char *bus_id)
+struct of_device* of_platform_device_create(struct device_node *np,
+ const char *bus_id,
+ struct device *parent)
{
struct of_device *dev;
u32 *reg;
@@ -247,7 +249,7 @@ struct of_device* of_platform_device_create(struct device_node *np, const char *
dev->node = of_node_get(np);
dev->dma_mask = 0xffffffffUL;
dev->dev.dma_mask = &dev->dma_mask;
- dev->dev.parent = NULL;
+ dev->dev.parent = parent;
dev->dev.bus = &of_platform_bus_type;
dev->dev.release = of_release_dev;