diff options
author | Johannes Berg <johannes.berg@intel.com> | 2013-10-11 09:57:47 +0200 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2013-10-11 09:57:47 +0200 |
commit | 04a4e1fdd248d7a19d53e6e90f757e99093e3d29 (patch) | |
tree | ae16ad3f90d9dd726838077aae74675ba7ae51fc /drivers/net/wireless/iwlwifi | |
parent | 19e737c98479f040e23987e50596a861e5e88b92 (diff) | |
parent | e25aa82a89db9e3b09d02b5481aa375c7712a10d (diff) |
Merge remote-tracking branch 'wireless-next/master' into HEAD
Diffstat (limited to 'drivers/net/wireless/iwlwifi')
-rw-r--r-- | drivers/net/wireless/iwlwifi/pcie/trans.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/net/wireless/iwlwifi/pcie/trans.c b/drivers/net/wireless/iwlwifi/pcie/trans.c index e66c7e378a3e..6392f67dc1af 100644 --- a/drivers/net/wireless/iwlwifi/pcie/trans.c +++ b/drivers/net/wireless/iwlwifi/pcie/trans.c @@ -1404,6 +1404,10 @@ struct iwl_trans *iwl_trans_pcie_alloc(struct pci_dev *pdev, spin_lock_init(&trans_pcie->reg_lock); init_waitqueue_head(&trans_pcie->ucode_write_waitq); + err = pci_enable_device(pdev); + if (err) + goto out_no_pci; + if (!cfg->base_params->pcie_l1_allowed) { /* * W/A - seems to solve weird behavior. We need to remove this @@ -1415,10 +1419,6 @@ struct iwl_trans *iwl_trans_pcie_alloc(struct pci_dev *pdev, PCIE_LINK_STATE_CLKPM); } - err = pci_enable_device(pdev); - if (err) - goto out_no_pci; - pci_set_master(pdev); err = pci_set_dma_mask(pdev, DMA_BIT_MASK(36)); |