spectrum_cs: Fix incorrect use of pcmcia_dev_present()
Subsystems (3)
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]>
Signed-off-by Pavel Roskin <[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
@@ -242,7 +242,7 @@ spectrum_reset(struct pcmcia_device *linu_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 */