Skip to contentSkip to conversation

spectrum_cs: Fix incorrect use of pcmcia_dev_present()

PATCH New Pavel Roskin 1 participant 1 message Aug 16, 2006

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 spectrum_cs: Fix incorrect use of pcmcia_dev_present()

From: Pavel Roskin <[email protected]>

This bug was introduced during the PCMCIA API conversion and broke spectrum_cs completely.

Tracked down by Fredrik Tolf <[email protected]>

---
This patch should go to 2.6.18 and 2.6.17.y.
---

 drivers/net/wireless/spectrum_cs.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/net/wireless/spectrum_cs.c +1 -1
index 7f78b78..bcc7038 100644
@@ -242,7 +242,7 @@ spectrum_reset(struct pcmcia_device *lin
 	u_int save_cor;
 
 	/* Doing it if hardware is gone is guaranteed crash */
-	if (pcmcia_dev_present(link))
+	if (!pcmcia_dev_present(link))
 		return -ENODEV;
 
 	/* Save original COR value */