CBUS is the underlying bus device, make
it the parent of the bus users (retu and
tahvo).

Signed-off-by: Felipe Balbi <[email protected]>
---
 arch/arm/mach-omap1/board-nokia770.c |    4 ++++
 arch/arm/mach-omap2/board-n8x0.c     |    4 ++++
 2 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/arch/arm/mach-omap1/board-nokia770.c 
b/arch/arm/mach-omap1/board-nokia770.c
index 5d174a3..676d99f 100644
--- a/arch/arm/mach-omap1/board-nokia770.c
+++ b/arch/arm/mach-omap1/board-nokia770.c
@@ -136,6 +136,7 @@ static struct platform_device retu_device = {
        .num_resources  = ARRAY_SIZE(retu_resource),
        .dev            = {
                .platform_data = &nokia770_retu_data,
+               .parent = &nokia770_cbus_device.dev,
        },
 };
 
@@ -151,6 +152,9 @@ static struct platform_device tahvo_device = {
        .id             = -1,
        .resource       = tahvo_resource,
        .num_resources  = ARRAY_SIZE(tahvo_resource),
+       .dev            = {
+               .parent = &nokia770_cbus_device.dev,
+       },
 };
 
 static struct platform_device tahvo_usb_device = {
diff --git a/arch/arm/mach-omap2/board-n8x0.c b/arch/arm/mach-omap2/board-n8x0.c
index ad06bde..b61ac1d 100644
--- a/arch/arm/mach-omap2/board-n8x0.c
+++ b/arch/arm/mach-omap2/board-n8x0.c
@@ -232,6 +232,7 @@ static struct platform_device retu_device = {
        .num_resources  = ARRAY_SIZE(retu_resource),
        .dev            = {
                .platform_data = &n8x0_retu_data,
+               .parent = &n8x0_cbus_device.dev,
        },
 };
 
@@ -247,6 +248,9 @@ static struct platform_device tahvo_device = {
        .id             = -1,
        .resource       = tahvo_resource,
        .num_resources  = ARRAY_SIZE(tahvo_resource),
+       .dev            = {
+               .parent = &n8x0_cbus_device.dev,
+       },
 };
 
 static struct platform_device tahvo_usb_device = {
-- 
1.7.6.rc1

--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to