Skip to contentSkip to conversation

spectrum_cs: Fix firmware uploading errors

PATCH New Richard Purdie 1 participant 1 message Aug 22, 2006 Networking drivers (wireless)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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).

---
 drivers/net/wireless/spectrum_cs.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/wireless/spectrum_cs.c +1 -1
Index: linux-2.6.17/drivers/net/wireless/spectrum_cs.c
===================================================================
@@ -245,7 +245,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 */