From: Richard Purdie Date: Tue, 22 Aug 2006 17:55:44 +0000 (+0100) Subject: [PATCH] spectrum_cs: Fix firmware uploading errors X-Git-Tag: v2.6.18-rc5~61^2~1 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=c5ab964debe92d0ec7af330f350a3433c1b5b61e;p=linux-2.6-omap-h63xx.git [PATCH] spectrum_cs: Fix firmware uploading errors spectrum_cs: Fix the logic so we error when the device is *not* present! This fixes firmware upload failures which prevent the driver from working (the bug is also present in 2.6.17). Signed-off-by: Richard Purdie Signed-off-by: Jeff Garzik --- 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 */