projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8d91626
)
[PATCH] spectrum_cs: Fix firmware uploading errors
author
Richard Purdie
<rpurdie@rpsys.net>
Tue, 22 Aug 2006 17:55:44 +0000
(18:55 +0100)
committer
Jeff Garzik
<jeff@garzik.org>
Thu, 24 Aug 2006 04:40:51 +0000
(
00:40
-0400)
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 <rpurdie@rpsys.net>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
drivers/net/wireless/spectrum_cs.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/net/wireless/spectrum_cs.c
b/drivers/net/wireless/spectrum_cs.c
index 7f78b7801fb3de996a2ad1dff87cce905904efd7..bcc7038130f69a1355871e8abc5884ff2d386863 100644
(file)
--- 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 */