X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=drivers%2Fpcmcia%2Fomap_cf.c;h=2c23d758439982be6eb765667e586596a44dea08;hb=e904663b4d511884145df54bead401840389853a;hp=47b5ade95bde5ae8093997c208f79ed242a4aaa7;hpb=849a8924a6740ecbf9711e015beca69425f0c429;p=powerpc.git diff --git a/drivers/pcmcia/omap_cf.c b/drivers/pcmcia/omap_cf.c index 47b5ade95b..2c23d75843 100644 --- a/drivers/pcmcia/omap_cf.c +++ b/drivers/pcmcia/omap_cf.c @@ -218,7 +218,7 @@ static int __init omap_cf_probe(struct device *dev) /* either CFLASH.IREQ (INT_1610_CF) or some GPIO */ irq = platform_get_irq(pdev, 0); - if (!irq) + if (irq < 0) return -EINVAL; cf = kcalloc(1, sizeof *cf, GFP_KERNEL);