diff options
author | Kulikov Vasiliy <segooon@gmail.com> | 2010-08-09 11:50:47 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-08-10 11:51:10 +0200 |
commit | a5a4405b4d666454257be4048511840f3ab8adbb (patch) | |
tree | 546fcc026ed0d2a70fdb94f0fc767336ec1667c9 /drivers/isdn | |
parent | isdn: avm: call pci_disable_device() if pci_probe() failed (diff) | |
download | linux-a5a4405b4d666454257be4048511840f3ab8adbb.tar.xz linux-a5a4405b4d666454257be4048511840f3ab8adbb.zip |
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 <segooon@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/isdn')
-rw-r--r-- | drivers/isdn/hardware/avm/t1pci.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/isdn/hardware/avm/t1pci.c b/drivers/isdn/hardware/avm/t1pci.c index 5a3f83098018..a79eb5afb92d 100644 --- a/drivers/isdn/hardware/avm/t1pci.c +++ b/drivers/isdn/hardware/avm/t1pci.c @@ -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; |