aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath/ath9k/ahb.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/ahb.c')
-rw-r--r--drivers/net/wireless/ath/ath9k/ahb.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/net/wireless/ath/ath9k/ahb.c b/drivers/net/wireless/ath/ath9k/ahb.c
index 2dff2765769b..a5684c38dcd9 100644
--- a/drivers/net/wireless/ath/ath9k/ahb.c
+++ b/drivers/net/wireless/ath/ath9k/ahb.c
@@ -82,6 +82,7 @@ static int ath_ahb_probe(struct platform_device *pdev)
82 int irq; 82 int irq;
83 int ret = 0; 83 int ret = 0;
84 struct ath_hw *ah; 84 struct ath_hw *ah;
85 struct ath_common *common;
85 char hw_name[64]; 86 char hw_name[64];
86 87
87 if (!dev_get_platdata(&pdev->dev)) { 88 if (!dev_get_platdata(&pdev->dev)) {
@@ -124,9 +125,6 @@ static int ath_ahb_probe(struct platform_device *pdev)
124 sc->mem = mem; 125 sc->mem = mem;
125 sc->irq = irq; 126 sc->irq = irq;
126 127
127 /* Will be cleared in ath9k_start() */
128 set_bit(SC_OP_INVALID, &sc->sc_flags);
129
130 ret = request_irq(irq, ath_isr, IRQF_SHARED, "ath9k", sc); 128 ret = request_irq(irq, ath_isr, IRQF_SHARED, "ath9k", sc);
131 if (ret) { 129 if (ret) {
132 dev_err(&pdev->dev, "request_irq failed\n"); 130 dev_err(&pdev->dev, "request_irq failed\n");
@@ -144,6 +142,9 @@ static int ath_ahb_probe(struct platform_device *pdev)
144 wiphy_info(hw->wiphy, "%s mem=0x%lx, irq=%d\n", 142 wiphy_info(hw->wiphy, "%s mem=0x%lx, irq=%d\n",
145 hw_name, (unsigned long)mem, irq); 143 hw_name, (unsigned long)mem, irq);
146 144
145 common = ath9k_hw_common(sc->sc_ah);
146 /* Will be cleared in ath9k_start() */
147 set_bit(ATH_OP_INVALID, &common->op_flags);
147 return 0; 148 return 0;
148 149
149 err_irq: 150 err_irq: