]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commitdiff
usb: gadget: s3c-hsudc: remove unnecessary initializations
authorFelipe Balbi <balbi@ti.com>
Tue, 26 Feb 2013 09:23:52 +0000 (11:23 +0200)
committerFelipe Balbi <balbi@ti.com>
Mon, 18 Mar 2013 09:17:28 +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/s3c-hsudc.c

index 7fc3de537c9a6b2b319feeed925492daecfb827f..8db7b10f3d07ea0685499690a896751d4ceeb189 100644 (file)
@@ -1306,8 +1306,6 @@ static int s3c_hsudc_probe(struct platform_device *pdev)
        hsudc->gadget.max_speed = USB_SPEED_HIGH;
        hsudc->gadget.ops = &s3c_hsudc_gadget_ops;
        hsudc->gadget.name = dev_name(dev);
-       hsudc->gadget.dev.parent = dev;
-       hsudc->gadget.dev.dma_mask = dev->dma_mask;
        hsudc->gadget.ep0 = &hsudc->ep[0].ep;
        hsudc->gadget.is_otg = 0;
        hsudc->gadget.is_a_peripheral = 0;