diff options
-rw-r--r-- | drivers/pcmcia/bfin_cf_pcmcia.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pcmcia/bfin_cf_pcmcia.c b/drivers/pcmcia/bfin_cf_pcmcia.c index 300b368605c9..2482ce7ac6dc 100644 --- a/drivers/pcmcia/bfin_cf_pcmcia.c +++ b/drivers/pcmcia/bfin_cf_pcmcia.c | |||
@@ -205,7 +205,7 @@ static int __devinit bfin_cf_probe(struct platform_device *pdev) | |||
205 | dev_info(&pdev->dev, "Blackfin CompactFlash/PCMCIA Socket Driver\n"); | 205 | dev_info(&pdev->dev, "Blackfin CompactFlash/PCMCIA Socket Driver\n"); |
206 | 206 | ||
207 | irq = platform_get_irq(pdev, 0); | 207 | irq = platform_get_irq(pdev, 0); |
208 | if (!irq) | 208 | if (irq <= 0) |
209 | return -EINVAL; | 209 | return -EINVAL; |
210 | 210 | ||
211 | cd_pfx = platform_get_irq(pdev, 1); /*Card Detect GPIO PIN */ | 211 | cd_pfx = platform_get_irq(pdev, 1); /*Card Detect GPIO PIN */ |