Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fdfb92ea authored by Holger Schurig's avatar Holger Schurig Committed by David S. Miller
Browse files

libertas: fix interrupt while removing driver



Previously I've got an interrupt while removing the driver.

Signed-off-by: default avatarHolger Schurig <hs4233@mail.mn-solutions.de>
Acked-by: default avatarDan Williams <dcbw@redhat.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 5a6e0434
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -256,7 +256,7 @@ static irqreturn_t if_cs_interrupt(int irq, void *data)
	} else if (int_cause == 0xffff) {
		/* Read in junk, the card has probably been removed */
		card->priv->surpriseremoved = 1;

		return IRQ_HANDLED;
	} else {
		if (int_cause & IF_CS_H_IC_TX_OVER)
			lbs_host_to_card_done(card->priv);
@@ -717,8 +717,8 @@ static void if_cs_release(struct pcmcia_device *p_dev)

	lbs_deb_enter(LBS_DEB_CS);

	pcmcia_disable_device(p_dev);
	free_irq(p_dev->irq.AssignedIRQ, card);
	pcmcia_disable_device(p_dev);
	if (card->iobase)
		ioport_unmap(card->iobase);