mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-31 04:01:48 -04:00
isdn: avm: call pci_disable_device() if pci_probe() failed
Driver should call pci_disable_device() if it returns from pci_probe() with error. Signed-off-by: Kulikov Vasiliy <[email protected]> Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
b69bcd9d9c
commit
a5a4405b4d
1 changed files with 1 additions and 0 deletions
|
|
@ -210,6 +210,7 @@ static int __devinit t1pci_probe(struct pci_dev *dev,
|
|||
if (retval != 0) {
|
||||
printk(KERN_ERR "t1pci: no AVM-T1-PCI at i/o %#x, irq %d detected, mem %#x\n",
|
||||
param.port, param.irq, param.membase);
|
||||
pci_disable_device(dev);
|
||||
return -ENODEV;
|
||||
}
|
||||
return 0;
|
||||
|
|
|
|||
Loading…
Reference in a new issue