Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 364558
b: refs/heads/master
c: b8d833a
h: refs/heads/master
v: v3
  • Loading branch information
Felipe Balbi committed Mar 18, 2013
1 parent 254f23e commit ab7c290
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 14 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: 80bf5343decf65d9e4141143d49e6ed381565cbf
refs/heads/master: b8d833a327aaed6637398446ec8a3e555b3ddd11
14 changes: 1 addition & 13 deletions trunk/drivers/usb/gadget/s3c-hsotg.c
Original file line number Diff line number Diff line change
Expand Up @@ -3567,17 +3567,13 @@ static int s3c_hsotg_probe(struct platform_device *pdev)

dev_info(dev, "regs %p, irq %d\n", hsotg->regs, hsotg->irq);

device_initialize(&hsotg->gadget.dev);

dev_set_name(&hsotg->gadget.dev, "gadget");

hsotg->gadget.max_speed = USB_SPEED_HIGH;
hsotg->gadget.ops = &s3c_hsotg_gadget_ops;
hsotg->gadget.name = dev_name(dev);

hsotg->gadget.dev.parent = dev;
hsotg->gadget.dev.dma_mask = dev->dma_mask;
hsotg->gadget.dev.release = s3c_hsotg_release;
hsotg->gadget.register_my_device = true;

/* reset the system */

Expand Down Expand Up @@ -3658,12 +3654,6 @@ static int s3c_hsotg_probe(struct platform_device *pdev)

s3c_hsotg_phy_disable(hsotg);

ret = device_add(&hsotg->gadget.dev);
if (ret) {
put_device(&hsotg->gadget.dev);
goto err_ep_mem;
}

ret = usb_add_gadget_udc(&pdev->dev, &hsotg->gadget);
if (ret)
goto err_ep_mem;
Expand Down Expand Up @@ -3702,10 +3692,8 @@ static int s3c_hsotg_remove(struct platform_device *pdev)
}

s3c_hsotg_phy_disable(hsotg);

clk_disable_unprepare(hsotg->clk);

device_unregister(&hsotg->gadget.dev);
return 0;
}

Expand Down

0 comments on commit ab7c290

Please sign in to comment.