diff options
author | Johannes Berg <johannes.berg@intel.com> | 2012-09-06 09:33:42 -0400 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2012-09-06 09:33:42 -0400 |
commit | 6379103e896a5e5aa707ea818588604ddd80064d (patch) | |
tree | c16212cf859e992739c36b76ecfb5b3359bcd22b /drivers/net/wireless/iwlwifi | |
parent | c5d472212024543e32cf3eea4381ab91b9f6b812 (diff) |
iwlwifi: remove unused IDI code stubs
These stubs are from internal experimental code
and aren't needed in the driver in the kernel
so just remove them.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi')
-rw-r--r-- | drivers/net/wireless/iwlwifi/pcie/drv.c | 13 | ||||
-rw-r--r-- | drivers/net/wireless/iwlwifi/pcie/rx.c | 10 | ||||
-rw-r--r-- | drivers/net/wireless/iwlwifi/pcie/trans.c | 8 |
3 files changed, 4 insertions, 27 deletions
diff --git a/drivers/net/wireless/iwlwifi/pcie/drv.c b/drivers/net/wireless/iwlwifi/pcie/drv.c index 89bfb43f4946..2a4675396707 100644 --- a/drivers/net/wireless/iwlwifi/pcie/drv.c +++ b/drivers/net/wireless/iwlwifi/pcie/drv.c | |||
@@ -263,8 +263,6 @@ MODULE_DEVICE_TABLE(pci, iwl_hw_card_ids); | |||
263 | /* PCI registers */ | 263 | /* PCI registers */ |
264 | #define PCI_CFG_RETRY_TIMEOUT 0x041 | 264 | #define PCI_CFG_RETRY_TIMEOUT 0x041 |
265 | 265 | ||
266 | #ifndef CONFIG_IWLWIFI_IDI | ||
267 | |||
268 | static int iwl_pci_probe(struct pci_dev *pdev, const struct pci_device_id *ent) | 266 | static int iwl_pci_probe(struct pci_dev *pdev, const struct pci_device_id *ent) |
269 | { | 267 | { |
270 | const struct iwl_cfg *cfg = (struct iwl_cfg *)(ent->driver_data); | 268 | const struct iwl_cfg *cfg = (struct iwl_cfg *)(ent->driver_data); |
@@ -307,8 +305,6 @@ static void __devexit iwl_pci_remove(struct pci_dev *pdev) | |||
307 | pci_set_drvdata(pdev, NULL); | 305 | pci_set_drvdata(pdev, NULL); |
308 | } | 306 | } |
309 | 307 | ||
310 | #endif /* CONFIG_IWLWIFI_IDI */ | ||
311 | |||
312 | #ifdef CONFIG_PM_SLEEP | 308 | #ifdef CONFIG_PM_SLEEP |
313 | 309 | ||
314 | static int iwl_pci_suspend(struct device *device) | 310 | static int iwl_pci_suspend(struct device *device) |
@@ -353,15 +349,6 @@ static SIMPLE_DEV_PM_OPS(iwl_dev_pm_ops, iwl_pci_suspend, iwl_pci_resume); | |||
353 | 349 | ||
354 | #endif | 350 | #endif |
355 | 351 | ||
356 | #ifdef CONFIG_IWLWIFI_IDI | ||
357 | /* | ||
358 | * Defined externally in iwl-idi.c | ||
359 | */ | ||
360 | int iwl_pci_probe(struct pci_dev *pdev, const struct pci_device_id *ent); | ||
361 | void __devexit iwl_pci_remove(struct pci_dev *pdev); | ||
362 | |||
363 | #endif /* CONFIG_IWLWIFI_IDI */ | ||
364 | |||
365 | static struct pci_driver iwl_pci_driver = { | 352 | static struct pci_driver iwl_pci_driver = { |
366 | .name = DRV_NAME, | 353 | .name = DRV_NAME, |
367 | .id_table = iwl_hw_card_ids, | 354 | .id_table = iwl_hw_card_ids, |
diff --git a/drivers/net/wireless/iwlwifi/pcie/rx.c b/drivers/net/wireless/iwlwifi/pcie/rx.c index d80604a2bb1a..7b2ac6736f76 100644 --- a/drivers/net/wireless/iwlwifi/pcie/rx.c +++ b/drivers/net/wireless/iwlwifi/pcie/rx.c | |||
@@ -35,10 +35,6 @@ | |||
35 | #include "internal.h" | 35 | #include "internal.h" |
36 | #include "iwl-op-mode.h" | 36 | #include "iwl-op-mode.h" |
37 | 37 | ||
38 | #ifdef CONFIG_IWLWIFI_IDI | ||
39 | #include "iwl-amfh.h" | ||
40 | #endif | ||
41 | |||
42 | /****************************************************************************** | 38 | /****************************************************************************** |
43 | * | 39 | * |
44 | * RX path functions | 40 | * RX path functions |
@@ -723,11 +719,9 @@ void iwl_irq_tasklet(struct iwl_trans *trans) | |||
723 | /* Disable periodic interrupt; we use it as just a one-shot. */ | 719 | /* Disable periodic interrupt; we use it as just a one-shot. */ |
724 | iwl_write8(trans, CSR_INT_PERIODIC_REG, | 720 | iwl_write8(trans, CSR_INT_PERIODIC_REG, |
725 | CSR_INT_PERIODIC_DIS); | 721 | CSR_INT_PERIODIC_DIS); |
726 | #ifdef CONFIG_IWLWIFI_IDI | 722 | |
727 | iwl_amfh_rx_handler(); | ||
728 | #else | ||
729 | iwl_rx_handle(trans); | 723 | iwl_rx_handle(trans); |
730 | #endif | 724 | |
731 | /* | 725 | /* |
732 | * Enable periodic interrupt in 8 msec only if we received | 726 | * Enable periodic interrupt in 8 msec only if we received |
733 | * real RX interrupt (instead of just periodic int), to catch | 727 | * real RX interrupt (instead of just periodic int), to catch |
diff --git a/drivers/net/wireless/iwlwifi/pcie/trans.c b/drivers/net/wireless/iwlwifi/pcie/trans.c index 38f51b04217e..e555dff70b78 100644 --- a/drivers/net/wireless/iwlwifi/pcie/trans.c +++ b/drivers/net/wireless/iwlwifi/pcie/trans.c | |||
@@ -855,10 +855,8 @@ static int iwl_nic_init(struct iwl_trans *trans) | |||
855 | 855 | ||
856 | iwl_op_mode_nic_config(trans->op_mode); | 856 | iwl_op_mode_nic_config(trans->op_mode); |
857 | 857 | ||
858 | #ifndef CONFIG_IWLWIFI_IDI | ||
859 | /* Allocate the RX queue, or reset if it is already allocated */ | 858 | /* Allocate the RX queue, or reset if it is already allocated */ |
860 | iwl_rx_init(trans); | 859 | iwl_rx_init(trans); |
861 | #endif | ||
862 | 860 | ||
863 | /* Allocate or reset and init all Tx and Command queues */ | 861 | /* Allocate or reset and init all Tx and Command queues */ |
864 | if (iwl_tx_init(trans)) | 862 | if (iwl_tx_init(trans)) |
@@ -1184,9 +1182,8 @@ static void iwl_trans_pcie_stop_device(struct iwl_trans *trans) | |||
1184 | */ | 1182 | */ |
1185 | if (test_bit(STATUS_DEVICE_ENABLED, &trans_pcie->status)) { | 1183 | if (test_bit(STATUS_DEVICE_ENABLED, &trans_pcie->status)) { |
1186 | iwl_trans_tx_stop(trans); | 1184 | iwl_trans_tx_stop(trans); |
1187 | #ifndef CONFIG_IWLWIFI_IDI | ||
1188 | iwl_trans_rx_stop(trans); | 1185 | iwl_trans_rx_stop(trans); |
1189 | #endif | 1186 | |
1190 | /* Power-down device's busmaster DMA clocks */ | 1187 | /* Power-down device's busmaster DMA clocks */ |
1191 | iwl_write_prph(trans, APMG_CLK_DIS_REG, | 1188 | iwl_write_prph(trans, APMG_CLK_DIS_REG, |
1192 | APMG_CLK_VAL_DMA_CLK_RQT); | 1189 | APMG_CLK_VAL_DMA_CLK_RQT); |
@@ -1551,9 +1548,8 @@ void iwl_trans_pcie_free(struct iwl_trans *trans) | |||
1551 | struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); | 1548 | struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); |
1552 | 1549 | ||
1553 | iwl_trans_pcie_tx_free(trans); | 1550 | iwl_trans_pcie_tx_free(trans); |
1554 | #ifndef CONFIG_IWLWIFI_IDI | ||
1555 | iwl_trans_pcie_rx_free(trans); | 1551 | iwl_trans_pcie_rx_free(trans); |
1556 | #endif | 1552 | |
1557 | if (trans_pcie->irq_requested == true) { | 1553 | if (trans_pcie->irq_requested == true) { |
1558 | free_irq(trans_pcie->irq, trans); | 1554 | free_irq(trans_pcie->irq, trans); |
1559 | iwl_free_isr_ict(trans); | 1555 | iwl_free_isr_ict(trans); |