summaryrefslogtreecommitdiff
path: root/drivers/net/wireless/iwlwifi/iwl-agn.h
diff options
context:
space:
mode:
authorEmmanuel Grumbach <emmanuel.grumbach@intel.com>2011-06-10 22:30:30 +0400
committerWey-Yi Guy <wey-yi.w.guy@intel.com>2011-06-18 19:18:17 +0400
commit08321c062f77e379c4a539f1522220b83ab1e84e (patch)
tree35faf11f885e60d2da7de4f72f4d86d184216d5e /drivers/net/wireless/iwlwifi/iwl-agn.h
parent85aed7c48113dfcdc913008481c46346af0db69e (diff)
downloadlinux-08321c062f77e379c4a539f1522220b83ab1e84e.tar.xz
iwlagn: add a get_irq method to iwl_bus_ops and use it
In order to remove a few more dereference to priv->pdev that will be killed [Asoon, there is now a method to get the IRQ number. Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com> Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-agn.h')
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-agn.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-agn.h b/drivers/net/wireless/iwlwifi/iwl-agn.h
index 346386927990..848a6c3a56ad 100644
--- a/drivers/net/wireless/iwlwifi/iwl-agn.h
+++ b/drivers/net/wireless/iwlwifi/iwl-agn.h
@@ -125,7 +125,7 @@ irqreturn_t iwl_isr_ict(int irq, void *data);
static inline void iwl_synchronize_irq(struct iwl_priv *priv)
{
/* wait to make sure we flush pending tasklet*/
- synchronize_irq(priv->pci_dev->irq);
+ synchronize_irq(priv->bus.ops->get_irq(&priv->bus));
tasklet_kill(&priv->irq_tasklet);
}