Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 303646
b: refs/heads/master
c: f956c4d
h: refs/heads/master
v: v3
  • Loading branch information
Greg Kroah-Hartman committed Apr 27, 2012
1 parent 6290d08 commit 6fac6ee
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 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: 1041ac11981288a2e730c6f5d5383c596b366410
refs/heads/master: f956c4da990e2f047d6477e2e325807309be613c
8 changes: 4 additions & 4 deletions trunk/drivers/usb/host/ohci-sh.c
Original file line number Diff line number Diff line change
Expand Up @@ -88,20 +88,20 @@ static int ohci_hcd_sh_probe(struct platform_device *pdev)

res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
if (!res) {
err("platform_get_resource error.");
dev_err(&pdev->dev, "platform_get_resource error.\n");
return -ENODEV;
}

irq = platform_get_irq(pdev, 0);
if (irq < 0) {
err("platform_get_irq error.");
dev_err(&pdev->dev, "platform_get_irq error.\n");
return -ENODEV;
}

/* initialize hcd */
hcd = usb_create_hcd(&ohci_sh_hc_driver, &pdev->dev, (char *)hcd_name);
if (!hcd) {
err("Failed to create hcd");
dev_err(&pdev->dev, "Failed to create hcd\n");
return -ENOMEM;
}

Expand All @@ -110,7 +110,7 @@ static int ohci_hcd_sh_probe(struct platform_device *pdev)
hcd->rsrc_len = resource_size(res);
ret = usb_add_hcd(hcd, irq, IRQF_SHARED);
if (ret != 0) {
err("Failed to add hcd");
dev_err(&pdev->dev, "Failed to add hcd\n");
usb_put_hcd(hcd);
return ret;
}
Expand Down

0 comments on commit 6fac6ee

Please sign in to comment.