Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 96618
b: refs/heads/master
c: af3d305
h: refs/heads/master
v: v3
  • Loading branch information
Harvey Harrison authored and Greg Kroah-Hartman committed May 14, 2008
1 parent 74f19d0 commit 5bbca83
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 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: 220264733d3fb126c5ffd71ce897d918ce491c62
refs/heads/master: af3d305ca71fea5dfdeba4bcecf2f91fa16dfa9d
10 changes: 5 additions & 5 deletions trunk/drivers/usb/gadget/amd5536udc.c
Original file line number Diff line number Diff line change
Expand Up @@ -3251,7 +3251,7 @@ static int udc_pci_probe(
/* pci setup */
if (pci_enable_device(pdev) < 0) {
kfree(dev);
dev = 0;
dev = NULL;
retval = -ENODEV;
goto finished;
}
Expand All @@ -3264,7 +3264,7 @@ static int udc_pci_probe(
if (!request_mem_region(resource, len, name)) {
dev_dbg(&pdev->dev, "pci device used already\n");
kfree(dev);
dev = 0;
dev = NULL;
retval = -EBUSY;
goto finished;
}
Expand All @@ -3274,23 +3274,23 @@ static int udc_pci_probe(
if (dev->virt_addr == NULL) {
dev_dbg(&pdev->dev, "start address cannot be mapped\n");
kfree(dev);
dev = 0;
dev = NULL;
retval = -EFAULT;
goto finished;
}

if (!pdev->irq) {
dev_err(&dev->pdev->dev, "irq not set\n");
kfree(dev);
dev = 0;
dev = NULL;
retval = -ENODEV;
goto finished;
}

if (request_irq(pdev->irq, udc_irq, IRQF_SHARED, name, dev) != 0) {
dev_dbg(&dev->pdev->dev, "request_irq(%d) fail\n", pdev->irq);
kfree(dev);
dev = 0;
dev = NULL;
retval = -EBUSY;
goto finished;
}
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/usb/host/ohci-sm501.c
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ static int ohci_hcd_sm501_drv_probe(struct platform_device *pdev)
struct device *dev = &pdev->dev;
struct resource *res, *mem;
int retval, irq;
struct usb_hcd *hcd = 0;
struct usb_hcd *hcd = NULL;

irq = retval = platform_get_irq(pdev, 0);
if (retval < 0)
Expand Down

0 comments on commit 5bbca83

Please sign in to comment.