Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 303865
b: refs/heads/master
c: f9df839
h: refs/heads/master
i:
  303863: f52cb08
v: v3
  • Loading branch information
Alexander Shishkin authored and Greg Kroah-Hartman committed May 8, 2012
1 parent 3938010 commit 4b3ef45
Show file tree
Hide file tree
Showing 5 changed files with 133 additions and 134 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: d36ade60e3cc212992f001d2046815b068073c0c
refs/heads/master: f9df8395c7f9b1b8d0ea9221595a97f2f4720359
3 changes: 2 additions & 1 deletion trunk/drivers/usb/gadget/ci13xxx_msm.c
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,8 @@ static int ci13xxx_msm_probe(struct platform_device *pdev)
return -ENOMEM;
}

ret = udc_probe(&ci13xxx_msm_udc_driver, &pdev->dev, regs);
ret = udc_probe(&ci13xxx_msm_udc_driver, &pdev->dev, regs,
DEF_CAPOFFSET);
if (ret < 0) {
dev_err(&pdev->dev, "udc_probe failed\n");
goto iounmap;
Expand Down
7 changes: 6 additions & 1 deletion trunk/drivers/usb/gadget/ci13xxx_pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ static int __devinit ci13xxx_pci_probe(struct pci_dev *pdev,
const struct pci_device_id *id)
{
void __iomem *regs = NULL;
uintptr_t capoffset = DEF_CAPOFFSET;
int retval = 0;

if (id == NULL)
Expand Down Expand Up @@ -86,7 +87,11 @@ static int __devinit ci13xxx_pci_probe(struct pci_dev *pdev,
pci_set_master(pdev);
pci_try_set_mwi(pdev);

retval = udc_probe(&ci13xxx_pci_udc_driver, &pdev->dev, regs);
if (pdev->vendor == PCI_VENDOR_ID_INTEL)
capoffset = 0;

retval = udc_probe(&ci13xxx_pci_udc_driver, &pdev->dev, regs,
capoffset);
if (retval)
goto iounmap;

Expand Down
Loading

0 comments on commit 4b3ef45

Please sign in to comment.