diff options
author | Kulikov Vasiliy <segooon@gmail.com> | 2010-08-09 09:50:47 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-08-10 02:51:10 -0700 |
commit | a5a4405b4d666454257be4048511840f3ab8adbb (patch) | |
tree | 546fcc026ed0d2a70fdb94f0fc767336ec1667c9 | |
parent | b69bcd9d9c3c47ed76da9cc0215c2eda0b7c16cf (diff) | |
download | op-kernel-dev-a5a4405b4d666454257be4048511840f3ab8adbb.zip op-kernel-dev-a5a4405b4d666454257be4048511840f3ab8adbb.tar.gz |
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>
-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 5a3f830..a79eb5a 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; |