mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
[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 <[email protected]> Signed-off-by: Jeff Garzik <[email protected]>
This commit is contained in:
parent
8d91626636
commit
c5ab964deb
1 changed files with 1 additions and 1 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Reference in a new issue