From: Alexandre Pereira da Silva Date: Tue, 26 Jun 2012 14:27:12 +0000 (-0300) Subject: usb: gadget: at91_udc: Propagate devicetree to gadget drivers X-Git-Tag: firefly_0821_release~3680^2~2357^2~24^2~35^2 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=65c84ea18b1b4b8c03fb67c3bea023ed1446bd2e;p=firefly-linux-kernel-4.4.55.git usb: gadget: at91_udc: Propagate devicetree to gadget drivers Fill dev.of_node of gadget drivers, so they can use devicetree Signed-off-by: Alexandre Pereira da Silva Signed-off-by: Felipe Balbi --- diff --git a/drivers/usb/gadget/at91_udc.c b/drivers/usb/gadget/at91_udc.c index 1a4430f315c3..c9e66dfb02e6 100644 --- a/drivers/usb/gadget/at91_udc.c +++ b/drivers/usb/gadget/at91_udc.c @@ -1634,6 +1634,7 @@ static int at91_start(struct usb_gadget *gadget, udc = container_of(gadget, struct at91_udc, gadget); udc->driver = driver; udc->gadget.dev.driver = &driver->driver; + udc->gadget.dev.of_node = udc->pdev->dev.of_node; dev_set_drvdata(&udc->gadget.dev, &driver->driver); udc->enabled = 1; udc->selfpowered = 1;