From: Pavel Roskin Date: Wed, 16 Aug 2006 00:42:20 +0000 (-0400) Subject: [PATCH] spectrum_cs: Fix incorrect use of pcmcia_dev_present() X-Git-Tag: v2.6.18-rc5~61^2^2~1 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=794ccda61c7dc2aa6c66e8ef18a44d865d3c3a7d;p=linux-2.6-omap-h63xx.git [PATCH] spectrum_cs: Fix incorrect use of pcmcia_dev_present() This bug was introduced during the PCMCIA API conversion and broke spectrum_cs completely. Tracked down by Fredrik Tolf Signed-off-by: Pavel Roskin Signed-off-by: John W. Linville --- diff --git a/drivers/net/wireless/spectrum_cs.c b/drivers/net/wireless/spectrum_cs.c index 7f78b7801fb..bcc7038130f 100644 --- a/drivers/net/wireless/spectrum_cs.c +++ b/drivers/net/wireless/spectrum_cs.c @@ -242,7 +242,7 @@ spectrum_reset(struct pcmcia_device *link, int idle) 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 */