diff options
author | Felipe Balbi <balbi@ti.com> | 2013-02-26 10:59:41 +0200 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2013-03-18 11:17:17 +0200 |
commit | 2ed14320f3fed9e5b774ef68bdf73a4f3e28844e (patch) | |
tree | 10cf6b384af8df26f64d745d60ff9966a96ec4e8 /drivers | |
parent | 658c8cf14dce1093e9f810f7e04a711ed79da6bd (diff) | |
download | op-kernel-dev-2ed14320f3fed9e5b774ef68bdf73a4f3e28844e.zip op-kernel-dev-2ed14320f3fed9e5b774ef68bdf73a4f3e28844e.tar.gz |
usb: gadget: udc-core: initialize parent
if udc-core always does it, we can delete
some extra lines from all UDC drivers. Besides,
it avoids mistakes from happening and propagating.
Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/usb/gadget/udc-core.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/usb/gadget/udc-core.c b/drivers/usb/gadget/udc-core.c index 3e19a01..447a161 100644 --- a/drivers/usb/gadget/udc-core.c +++ b/drivers/usb/gadget/udc-core.c @@ -184,6 +184,7 @@ int usb_add_gadget_udc(struct device *parent, struct usb_gadget *gadget) goto err1; dev_set_name(&gadget->dev, "gadget"); + gadget->dev.parent = parent; dma_set_coherent_mask(&gadget->dev, parent->coherent_dma_mask); gadget->dev.dma_parms = parent->dma_parms; |