Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 219683
b: refs/heads/master
c: c37c6d2
h: refs/heads/master
i:
  219681: 3dfb2cd
  219679: 98a1931
v: v3
  • Loading branch information
Kulikov Vasiliy authored and Greg Kroah-Hartman committed Aug 31, 2010
1 parent b9d9c42 commit 9d10355
Show file tree
Hide file tree
Showing 2 changed files with 10 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: 918e3592b9ea865ce29bda06a7200eba80d8d5f8
refs/heads/master: c37c6d2196fc716abac6531c4cf08ad2874d52d8
13 changes: 9 additions & 4 deletions trunk/drivers/staging/cx25821/cx25821-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -962,7 +962,7 @@ static int cx25821_dev_setup(struct cx25821_dev *dev)
dev->pci->subsystem_device);

cx25821_devcount--;
return -ENODEV;
return -EBUSY;
}

/* PCIe stuff */
Expand Down Expand Up @@ -1412,9 +1412,12 @@ static int __devinit cx25821_initdev(struct pci_dev *pci_dev,

printk(KERN_INFO "cx25821 Athena pci enable !\n");

if (cx25821_dev_setup(dev) < 0) {
err = -EINVAL;
goto fail_unregister_device;
err = cx25821_dev_setup(dev);
if (err) {
if (err == -EBUSY)
goto fail_unregister_device;
else
goto fail_unregister_pci;
}

/* print pci info */
Expand Down Expand Up @@ -1448,6 +1451,8 @@ static int __devinit cx25821_initdev(struct pci_dev *pci_dev,
printk(KERN_INFO "cx25821 cx25821_initdev() can't get IRQ !\n");
cx25821_dev_unregister(dev);

fail_unregister_pci:
pci_disable_device(pci_dev);
fail_unregister_device:
v4l2_device_unregister(&dev->v4l2_dev);

Expand Down

0 comments on commit 9d10355

Please sign in to comment.