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

index e8c9afd8fbf0aca6a4a3eb3fe2b7e1d9ecb4b6ec..c1db902ebb7fa6fe1f1269ddf58071ee1ee95abc 100644 (file)
@@ -3193,8 +3193,6 @@ static int pch_udc_probe(struct pci_dev *pdev,
        if (retval)
                goto finished;
 
-       dev->gadget.dev.parent = &pdev->dev;
-       dev->gadget.dev.dma_mask = pdev->dev.dma_mask;
        dev->gadget.dev.release = gadget_release;
        dev->gadget.name = KBUILD_MODNAME;
        dev->gadget.max_speed = USB_SPEED_HIGH;