linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: Alexandre Pereira da Silva <aletes.xgr@gmail.com>
To: Grant Likely <grant.likely@secretlab.ca>,
	Rob Herring <rob.herring@calxeda.com>,
	Rob Landley <rob@landley.net>, Felipe Balbi <balbi@ti.com>,
	Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
	Li Yang <leoli@freescale.com>,
	Alexandre Pereira da Silva <aletes.xgr@gmail.com>,
	devicetree-discuss@lists.ozlabs.org, linux-doc@vger.kernel.org,
	linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org,
	linuxppc-dev@lists.ozlabs.org, Roland Stigge <stigge@antcom.de>
Subject: [PATCH 3/5] usb: gadget: fsl_udc: Propagate devicetree to gadget drivers
Date: Tue, 26 Jun 2012 11:27:11 -0300	[thread overview]
Message-ID: <1340720833-781-4-git-send-email-aletes.xgr@gmail.com> (raw)
In-Reply-To: <1340720833-781-1-git-send-email-aletes.xgr@gmail.com>

Fill dev.of_node of gadget drivers, so they can use devicetree

Signed-off-by: Alexandre Pereira da Silva <aletes.xgr@gmail.com>
---
 drivers/usb/gadget/fsl_udc_core.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/usb/gadget/fsl_udc_core.c b/drivers/usb/gadget/fsl_udc_core.c
index bc6f9bb..a65ca0f 100644
--- a/drivers/usb/gadget/fsl_udc_core.c
+++ b/drivers/usb/gadget/fsl_udc_core.c
@@ -2560,6 +2560,7 @@ static int __init fsl_udc_probe(struct platform_device *pdev)
 	dev_set_name(&udc_controller->gadget.dev, "gadget");
 	udc_controller->gadget.dev.release = fsl_udc_release;
 	udc_controller->gadget.dev.parent = &pdev->dev;
+	udc_controller->gadget.dev.of_node = pdev->dev.of_node;
 	ret = device_register(&udc_controller->gadget.dev);
 	if (ret < 0)
 		goto err_free_irq;
-- 
1.7.10

  parent reply	other threads:[~2012-06-26 14:27 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-06-26 14:27 [PATCH 0/5] Usb gadget devicetree bindings Alexandre Pereira da Silva
2012-06-26 14:27 ` [PATCH 1/5] usb: gadget: lpc32xx_udc: Propagate devicetree to gadget drivers Alexandre Pereira da Silva
2012-06-26 14:27 ` [PATCH 2/5] usb: gadget: s3c-hsotg: " Alexandre Pereira da Silva
2012-06-26 14:27 ` Alexandre Pereira da Silva [this message]
2012-06-26 14:27 ` [PATCH 4/5] usb: gadget: at91_udc: " Alexandre Pereira da Silva
2012-06-26 14:27 ` [PATCH 5/5] usb: gadget: composite: parse dt overrides Alexandre Pereira da Silva
2012-06-26 18:43   ` Rob Herring
2012-06-26 19:18     ` Michal Nazarewicz
2012-07-02  7:35   ` Felipe Balbi
2012-07-02 22:46     ` Rob Herring

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=1340720833-781-4-git-send-email-aletes.xgr@gmail.com \
    --to=aletes.xgr@gmail.com \
    --cc=balbi@ti.com \
    --cc=devicetree-discuss@lists.ozlabs.org \
    --cc=grant.likely@secretlab.ca \
    --cc=gregkh@linuxfoundation.org \
    --cc=leoli@freescale.com \
    --cc=linux-doc@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-usb@vger.kernel.org \
    --cc=linuxppc-dev@lists.ozlabs.org \
    --cc=rob.herring@calxeda.com \
    --cc=rob@landley.net \
    --cc=stigge@antcom.de \
    /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;
as well as URLs for NNTP newsgroup(s).