diff options
| author | YueHaibing <[email protected]> | 2018-05-23 10:34:45 +0000 |
|---|---|---|
| committer | Kalle Valo <[email protected]> | 2018-05-29 07:19:00 +0000 |
| commit | 88027c8ff0a3f87d5d06d53ee25a41b90d8bccec (patch) | |
| tree | 420aa3d1763cf38a6bb48c7eadf4dc448b6e7fed /drivers/net/wireless/atmel/atmel_pci.c | |
| parent | rtlwifi: fix btmpinfo timeout while processing C2H_BT_INFO (diff) | |
| download | kernel-88027c8ff0a3f87d5d06d53ee25a41b90d8bccec.tar.gz kernel-88027c8ff0a3f87d5d06d53ee25a41b90d8bccec.zip | |
atmel: Add missing call to pci_disable_device()
add pci_disable_device in error handling while init_atmel_card failed.
Signed-off-by: YueHaibing <[email protected]>
Signed-off-by: Kalle Valo <[email protected]>
Diffstat (limited to 'drivers/net/wireless/atmel/atmel_pci.c')
| -rw-r--r-- | drivers/net/wireless/atmel/atmel_pci.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/net/wireless/atmel/atmel_pci.c b/drivers/net/wireless/atmel/atmel_pci.c index bcf1f274a251..30df58a41a83 100644 --- a/drivers/net/wireless/atmel/atmel_pci.c +++ b/drivers/net/wireless/atmel/atmel_pci.c @@ -61,8 +61,10 @@ static int atmel_pci_probe(struct pci_dev *pdev, dev = init_atmel_card(pdev->irq, pdev->resource[1].start, ATMEL_FW_TYPE_506, &pdev->dev, NULL, NULL); - if (!dev) + if (!dev) { + pci_disable_device(pdev); return -ENODEV; + } pci_set_drvdata(pdev, dev); return 0; |
