Skip to content

Commit

Permalink
usb: gadget: r8a66597-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 b372c95 commit 71b0dd2
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions drivers/usb/gadget/r8a66597-udc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 71b0dd2

Please sign in to comment.