summaryrefslogtreecommitdiffstats
path: root/drivers/usb/musb/musb_gadget.c
diff options
context:
space:
mode:
authorFelipe Balbi <balbi@ti.com>2013-02-26 11:25:21 +0200
committerFelipe Balbi <balbi@ti.com>2013-03-18 11:17:30 +0200
commit5e6e3d3814004a509c9023abfc86ddea6803f8e1 (patch)
tree965f05da3d099460b3c68b8988dd9e40ae9e590f /drivers/usb/musb/musb_gadget.c
parent31bff47aa2147ceab5d88a12f115afa44cdf4449 (diff)
downloadop-kernel-dev-5e6e3d3814004a509c9023abfc86ddea6803f8e1.zip
op-kernel-dev-5e6e3d3814004a509c9023abfc86ddea6803f8e1.tar.gz
usb: musb: gadget: remove unnecessary initializations
udc-core now sets dma-related and parent fields for us, we don't need to do it ourselves. Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/musb/musb_gadget.c')
-rw-r--r--drivers/usb/musb/musb_gadget.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/usb/musb/musb_gadget.c b/drivers/usb/musb/musb_gadget.c
index d35a375..2dd952c 100644
--- a/drivers/usb/musb/musb_gadget.c
+++ b/drivers/usb/musb/musb_gadget.c
@@ -1782,8 +1782,6 @@ int musb_gadget_setup(struct musb *musb)
musb->g.speed = USB_SPEED_UNKNOWN;
/* this "gadget" abstracts/virtualizes the controller */
- musb->g.dev.parent = musb->controller;
- musb->g.dev.dma_mask = musb->controller->dma_mask;
musb->g.dev.release = musb_gadget_release;
musb->g.name = musb_driver_name;
musb->g.is_otg = 1;
OpenPOWER on IntegriCloud