diff options
-rw-r--r-- | drivers/net/wireless/libertas/if_cs.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/wireless/libertas/if_cs.c b/drivers/net/wireless/libertas/if_cs.c index 4b5ab9a6b97b..5a9cadb97503 100644 --- a/drivers/net/wireless/libertas/if_cs.c +++ b/drivers/net/wireless/libertas/if_cs.c | |||
@@ -249,14 +249,14 @@ static irqreturn_t if_cs_interrupt(int irq, void *data) | |||
249 | lbs_deb_enter(LBS_DEB_CS); | 249 | lbs_deb_enter(LBS_DEB_CS); |
250 | 250 | ||
251 | int_cause = if_cs_read16(card, IF_CS_C_INT_CAUSE); | 251 | int_cause = if_cs_read16(card, IF_CS_C_INT_CAUSE); |
252 | if(int_cause == 0x0) { | 252 | if (int_cause == 0x0) { |
253 | /* Not for us */ | 253 | /* Not for us */ |
254 | return IRQ_NONE; | 254 | return IRQ_NONE; |
255 | 255 | ||
256 | } else if (int_cause == 0xffff) { | 256 | } else if (int_cause == 0xffff) { |
257 | /* Read in junk, the card has probably been removed */ | 257 | /* Read in junk, the card has probably been removed */ |
258 | card->priv->surpriseremoved = 1; | 258 | card->priv->surpriseremoved = 1; |
259 | 259 | return IRQ_HANDLED; | |
260 | } else { | 260 | } else { |
261 | if (int_cause & IF_CS_H_IC_TX_OVER) | 261 | if (int_cause & IF_CS_H_IC_TX_OVER) |
262 | lbs_host_to_card_done(card->priv); | 262 | lbs_host_to_card_done(card->priv); |
@@ -717,8 +717,8 @@ static void if_cs_release(struct pcmcia_device *p_dev) | |||
717 | 717 | ||
718 | lbs_deb_enter(LBS_DEB_CS); | 718 | lbs_deb_enter(LBS_DEB_CS); |
719 | 719 | ||
720 | pcmcia_disable_device(p_dev); | ||
721 | free_irq(p_dev->irq.AssignedIRQ, card); | 720 | free_irq(p_dev->irq.AssignedIRQ, card); |
721 | pcmcia_disable_device(p_dev); | ||
722 | if (card->iobase) | 722 | if (card->iobase) |
723 | ioport_unmap(card->iobase); | 723 | ioport_unmap(card->iobase); |
724 | 724 | ||