Skip to content

Commit

Permalink
usb: gadget: s3c2410_udc: remove unnecessary initializations
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Felipe Balbi committed Mar 18, 2013
1 parent 4c42204 commit 31bff47
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions drivers/usb/gadget/s3c2410_udc.c
Original file line number Diff line number Diff line change
Expand Up @@ -1824,9 +1824,6 @@ static int s3c2410_udc_probe(struct platform_device *pdev)
goto err_mem;
}

udc->gadget.dev.parent = &pdev->dev;
udc->gadget.dev.dma_mask = pdev->dev.dma_mask;

the_controller = udc;
platform_set_drvdata(pdev, udc);

Expand Down

0 comments on commit 31bff47

Please sign in to comment.