projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cb4baf1
)
usb: gadget: at91_udc: Propagate devicetree to gadget drivers
author
Alexandre Pereira da Silva
<aletes.xgr@gmail.com>
Tue, 26 Jun 2012 14:27:12 +0000
(11:27 -0300)
committer
Felipe Balbi
<balbi@ti.com>
Mon, 2 Jul 2012 07:38:07 +0000
(10:38 +0300)
Fill dev.of_node of gadget drivers, so they can use devicetree
Signed-off-by: Alexandre Pereira da Silva <aletes.xgr@gmail.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/gadget/at91_udc.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/usb/gadget/at91_udc.c
b/drivers/usb/gadget/at91_udc.c
index 1a4430f315c3ea63805b3e3db16932c7d085c453..c9e66dfb02e6642c1e88149884857948b44869e8 100644
(file)
--- 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;