diff options
author | Wey-Yi Guy <wey-yi.w.guy@intel.com> | 2011-10-27 20:19:39 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-11-02 15:23:13 -0400 |
commit | 8a39ef8ba0fa0410d71db8e981e887fe4fdeca88 (patch) | |
tree | b1645243a2de84280a54d09c7c2c8272f5583b7a | |
parent | 3209e061ad04465b3999091f315049c95ac6cbcb (diff) |
iwlwifi: allow pci_enable_msi fail
Continue the init process even fail to enable msi
out_iounmap is no longer used, remove it
Reported-by: werner <w.landgraf@ru.ru>
Tested-by: werner <w.landgraf@ru.ru>
Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-pci.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-pci.c b/drivers/net/wireless/iwlwifi/iwl-pci.c index 3b6cc66365e5..19cc6a81da57 100644 --- a/drivers/net/wireless/iwlwifi/iwl-pci.c +++ b/drivers/net/wireless/iwlwifi/iwl-pci.c | |||
@@ -445,10 +445,9 @@ static int iwl_pci_probe(struct pci_dev *pdev, const struct pci_device_id *ent) | |||
445 | pci_write_config_byte(pdev, PCI_CFG_RETRY_TIMEOUT, 0x00); | 445 | pci_write_config_byte(pdev, PCI_CFG_RETRY_TIMEOUT, 0x00); |
446 | 446 | ||
447 | err = pci_enable_msi(pdev); | 447 | err = pci_enable_msi(pdev); |
448 | if (err) { | 448 | if (err) |
449 | dev_printk(KERN_ERR, &pdev->dev, "pci_enable_msi failed"); | 449 | dev_printk(KERN_ERR, &pdev->dev, |
450 | goto out_iounmap; | 450 | "pci_enable_msi failed(0X%x)", err); |
451 | } | ||
452 | 451 | ||
453 | /* TODO: Move this away, not needed if not MSI */ | 452 | /* TODO: Move this away, not needed if not MSI */ |
454 | /* enable rfkill interrupt: hw bug w/a */ | 453 | /* enable rfkill interrupt: hw bug w/a */ |
@@ -469,7 +468,6 @@ static int iwl_pci_probe(struct pci_dev *pdev, const struct pci_device_id *ent) | |||
469 | 468 | ||
470 | out_disable_msi: | 469 | out_disable_msi: |
471 | pci_disable_msi(pdev); | 470 | pci_disable_msi(pdev); |
472 | out_iounmap: | ||
473 | pci_iounmap(pdev, pci_bus->hw_base); | 471 | pci_iounmap(pdev, pci_bus->hw_base); |
474 | out_pci_release_regions: | 472 | out_pci_release_regions: |
475 | pci_set_drvdata(pdev, NULL); | 473 | pci_set_drvdata(pdev, NULL); |