Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 303544
b: refs/heads/master
c: 310e9e3
h: refs/heads/master
v: v3
  • Loading branch information
Michael Grzeschik authored and Greg Kroah-Hartman committed Apr 18, 2012
1 parent 403fbb3 commit 1348710
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 58c559e6509f276d0afb4621b2122e994e70160c
refs/heads/master: 310e9e334f60ca8282990a9c56678a4f58bce81f
8 changes: 8 additions & 0 deletions trunk/drivers/usb/host/isp1760-if.c
Original file line number Diff line number Diff line change
Expand Up @@ -398,6 +398,9 @@ static int __devinit isp1760_plat_probe(struct platform_device *pdev)
hcd = isp1760_register(mem_res->start, mem_size, irq_res->start,
irqflags, -ENOENT,
&pdev->dev, dev_name(&pdev->dev), devflags);

dev_set_drvdata(&pdev->dev, hcd);

if (IS_ERR(hcd)) {
pr_warning("isp1760: Failed to register the HCD device\n");
ret = -ENODEV;
Expand All @@ -417,11 +420,16 @@ static int __devexit isp1760_plat_remove(struct platform_device *pdev)
{
struct resource *mem_res;
resource_size_t mem_size;
struct usb_hcd *hcd = dev_get_drvdata(&pdev->dev);

usb_remove_hcd(hcd);

mem_res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
mem_size = resource_size(mem_res);
release_mem_region(mem_res->start, mem_size);

usb_put_hcd(hcd);

return 0;
}

Expand Down

0 comments on commit 1348710

Please sign in to comment.