X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=drivers%2Fpcmcia%2Fomap_cf.c;fp=drivers%2Fpcmcia%2Fomap_cf.c;h=47b5ade95bde5ae8093997c208f79ed242a4aaa7;hb=64ba3f394c830ec48a1c31b53dcae312c56f1604;hp=420e10aec0ae451c52961cceb9c2e3ca4f5de306;hpb=be1e6109ac94a859551f8e1774eb9a8469fe055c;p=linux-2.6.git diff --git a/drivers/pcmcia/omap_cf.c b/drivers/pcmcia/omap_cf.c index 420e10aec..47b5ade95 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 < 0) + if (!irq) return -EINVAL; cf = kcalloc(1, sizeof *cf, GFP_KERNEL); @@ -232,7 +232,7 @@ static int __init omap_cf_probe(struct device *dev) dev_set_drvdata(dev, cf); /* this primarily just shuts up irq handling noise */ - status = request_irq(irq, omap_cf_irq, IRQF_SHARED, + status = request_irq(irq, omap_cf_irq, SA_SHIRQ, driver_name, cf); if (status < 0) goto fail0;