]> git.karo-electronics.de Git - linux-beck.git/commitdiff
usb: gadget: r8a66597-udc: remove unnecessary initializations
authorFelipe Balbi <balbi@ti.com>
Tue, 26 Feb 2013 09:21:35 +0000 (11:21 +0200)
committerFelipe Balbi <balbi@ti.com>
Mon, 18 Mar 2013 09:17:27 +0000 (11:17 +0200)
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>
drivers/usb/gadget/r8a66597-udc.c

index a67d47708b9832ee1f22f239e1ac32dd336e42f4..2de775dbd92c3e6dcc1ded5fc00b7405942faa4e 100644 (file)
@@ -1915,8 +1915,6 @@ static int __init r8a66597_probe(struct platform_device *pdev)
 
        r8a66597->gadget.ops = &r8a66597_gadget_ops;
        r8a66597->gadget.max_speed = USB_SPEED_HIGH;
-       r8a66597->gadget.dev.parent = &pdev->dev;
-       r8a66597->gadget.dev.dma_mask = pdev->dev.dma_mask;
        r8a66597->gadget.dev.release = pdev->dev.release;
        r8a66597->gadget.name = udc_name;