Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 364541
b: refs/heads/master
c: 621c723
h: refs/heads/master
i:
  364539: 9b5bc3f
v: v3
  • Loading branch information
Felipe Balbi committed Mar 18, 2013
1 parent 4f79bb1 commit ebb8d53
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 13 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 2533beea9025254215be65cd1fca8da65019fd04
refs/heads/master: 621c723eb71d2f02baafe20a3eaefc3a4dec7788
13 changes: 1 addition & 12 deletions trunk/drivers/usb/gadget/atmel_usba_udc.c
Original file line number Diff line number Diff line change
Expand Up @@ -1900,9 +1900,9 @@ static int __init usba_udc_probe(struct platform_device *pdev)
dev_info(&pdev->dev, "FIFO at 0x%08lx mapped at %p\n",
(unsigned long)fifo->start, udc->fifo);

device_initialize(&udc->gadget.dev);
udc->gadget.dev.parent = &pdev->dev;
udc->gadget.dev.dma_mask = pdev->dev.dma_mask;
udc->gadget.register_my_device = true;

platform_set_drvdata(pdev, udc);

Expand Down Expand Up @@ -1962,12 +1962,6 @@ static int __init usba_udc_probe(struct platform_device *pdev)
}
udc->irq = irq;

ret = device_add(&udc->gadget.dev);
if (ret) {
dev_dbg(&pdev->dev, "Could not add gadget: %d\n", ret);
goto err_device_add;
}

if (gpio_is_valid(pdata->vbus_pin)) {
if (!gpio_request(pdata->vbus_pin, "atmel_usba_udc")) {
udc->vbus_pin = pdata->vbus_pin;
Expand Down Expand Up @@ -2007,9 +2001,6 @@ static int __init usba_udc_probe(struct platform_device *pdev)
gpio_free(udc->vbus_pin);
}

device_unregister(&udc->gadget.dev);

err_device_add:
free_irq(irq, udc);
err_request_irq:
kfree(usba_ep);
Expand Down Expand Up @@ -2053,8 +2044,6 @@ static int __exit usba_udc_remove(struct platform_device *pdev)
clk_put(udc->hclk);
clk_put(udc->pclk);

device_unregister(&udc->gadget.dev);

return 0;
}

Expand Down

0 comments on commit ebb8d53

Please sign in to comment.