diff options
author | Philipp Zabel <philipp.zabel@gmail.com> | 2009-02-27 11:54:08 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2009-09-15 13:17:16 -0400 |
commit | cb6dbd79628a53e66352387b53b426fa88640bfe (patch) | |
tree | b19d4daf7db1344f1205a8e25184bc9334a87df6 /drivers/bluetooth | |
parent | cc677441007a48f56117e74ac8cfc19c7851fac7 (diff) |
pcmcia: dtl1_cs: fix pcmcia_loop_config logic
pcmcia_loop_config returns 0 on success.
[wsa: added '< 0' for better readability]
Signed-off-by: Philipp Zabel <philipp.zabel@gmail.com>
Acked-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/bluetooth')
-rw-r--r-- | 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 2cc7b3266ea..b881a9cd874 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) | |||
618 | 618 | ||
619 | /* Look for a generic full-sized window */ | 619 | /* Look for a generic full-sized window */ |
620 | link->io.NumPorts1 = 8; | 620 | link->io.NumPorts1 = 8; |
621 | if (!pcmcia_loop_config(link, dtl1_confcheck, NULL)) | 621 | if (pcmcia_loop_config(link, dtl1_confcheck, NULL) < 0) |
622 | goto failed; | 622 | goto failed; |
623 | 623 | ||
624 | i = pcmcia_request_irq(link, &link->irq); | 624 | i = pcmcia_request_irq(link, &link->irq); |