[PATCH 7/8] pcmcia: dtl1_cs: fix pcmcia_loop_config logic
Greg Kroah-Hartman
gregkh at suse.de
Tue Sep 15 15:13:42 EDT 2009
From: Philipp Zabel <philipp.zabel at gmail.com>
pcmcia_loop_config returns 0 on success.
[wsa: added '< 0' for better readability]
Signed-off-by: Philipp Zabel <philipp.zabel at gmail.com>
Acked-by: Marcel Holtmann <marcel at holtmann.org>
Signed-off-by: Wolfram Sang <w.sang at pengutronix.de>
Signed-off-by: Greg Kroah-Hartman <gregkh at suse.de>
---
drivers/bluetooth/dtl1_cs.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/bluetooth/dtl1_cs.c b/drivers/bluetooth/dtl1_cs.c
index 2cc7b32..b881a9c 100644
--- a/drivers/bluetooth/dtl1_cs.c
+++ b/drivers/bluetooth/dtl1_cs.c
@@ -618,7 +618,7 @@ static int dtl1_config(struct pcmcia_device *link)
/* Look for a generic full-sized window */
link->io.NumPorts1 = 8;
- if (!pcmcia_loop_config(link, dtl1_confcheck, NULL))
+ if (pcmcia_loop_config(link, dtl1_confcheck, NULL) < 0)
goto failed;
i = pcmcia_request_irq(link, &link->irq);
--
1.6.4.2
More information about the linux-pcmcia
mailing list