diff options
author | David Woodhouse <dwmw2@infradead.org> | 2007-12-10 14:58:37 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-01-28 18:06:35 -0500 |
commit | 4f679496567809ce1e95730c25274e1832537f4b (patch) | |
tree | e46717a8df0eda9e741098ddaf56b7e1c36ab580 /drivers/net/wireless/libertas/if_sdio.c | |
parent | 1309b55b4de18bbfe19c73225a5481d6cdc8a463 (diff) |
libertas: clean up lbs_interrupt()
Make it take struct lbs_private as argument; that's all it wants anyway,
and all callers were starting off from that. Don't wake the netif
queues, because those should be handled elsewhere. And sort out the
locking, with a big nasty warning for those who don't have the
driver_lock locked when they call it.
Oh, and fix if_cs.c to lock the driver_lock before calling it.
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/libertas/if_sdio.c')
-rw-r--r-- | drivers/net/wireless/libertas/if_sdio.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/wireless/libertas/if_sdio.c b/drivers/net/wireless/libertas/if_sdio.c index 24239609367f..1ed72b9b6bf2 100644 --- a/drivers/net/wireless/libertas/if_sdio.c +++ b/drivers/net/wireless/libertas/if_sdio.c | |||
@@ -154,7 +154,7 @@ static int if_sdio_handle_cmd(struct if_sdio_card *card, | |||
154 | 154 | ||
155 | card->int_cause |= MRVDRV_CMD_UPLD_RDY; | 155 | card->int_cause |= MRVDRV_CMD_UPLD_RDY; |
156 | 156 | ||
157 | lbs_interrupt(card->priv->dev); | 157 | lbs_interrupt(card->priv); |
158 | 158 | ||
159 | ret = 0; | 159 | ret = 0; |
160 | 160 | ||
@@ -236,7 +236,7 @@ static int if_sdio_handle_event(struct if_sdio_card *card, | |||
236 | card->event = event; | 236 | card->event = event; |
237 | card->int_cause |= MRVDRV_CARDEVENT; | 237 | card->int_cause |= MRVDRV_CARDEVENT; |
238 | 238 | ||
239 | lbs_interrupt(card->priv->dev); | 239 | lbs_interrupt(card->priv); |
240 | 240 | ||
241 | spin_unlock_irqrestore(&card->priv->driver_lock, flags); | 241 | spin_unlock_irqrestore(&card->priv->driver_lock, flags); |
242 | 242 | ||