public inbox for linux-omap@vger.kernel.org
 help / color / mirror / Atom feed
From: Felipe Balbi <balbi@ti.com>
To: Tony Lindgren <tony@atomide.com>
Cc: Linux OMAP Mailing List <linux-omap@vger.kernel.org>,
	Felipe Balbi <balbi@ti.com>
Subject: [PATCH 1/2] cbus: make cbus parent of bus users
Date: Mon, 13 Jun 2011 22:40:57 +0300	[thread overview]
Message-ID: <1307994058-25486-2-git-send-email-balbi@ti.com> (raw)
In-Reply-To: <1307994058-25486-1-git-send-email-balbi@ti.com>

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

Signed-off-by: Felipe Balbi <balbi@ti.com>
---
 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


  reply	other threads:[~2011-06-13 19:41 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-06-13 19:40 [PATCH 0/2] CBUS Patches Felipe Balbi
2011-06-13 19:40 ` Felipe Balbi [this message]
2011-06-13 19:40 ` [PATCH 2/2] cbus: pass device as argument Felipe Balbi
2011-06-14 10:06 ` [PATCH 0/2] CBUS Patches Tony Lindgren
2011-06-14 13:11   ` Tony Lindgren
2011-06-14 13:14     ` Felipe Balbi
2011-06-14 13:44       ` Tony Lindgren
2011-06-14 14:00         ` Felipe Balbi
2011-06-14 14:35           ` Tony Lindgren

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1307994058-25486-2-git-send-email-balbi@ti.com \
    --to=balbi@ti.com \
    --cc=linux-omap@vger.kernel.org \
    --cc=tony@atomide.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox