tmio_mmc: don't use set_irq_type
authorPhilipp Zabel <philipp.zabel@gmail.com>
Thu, 4 Jun 2009 18:12:33 +0000 (20:12 +0200)
committerPierre Ossman <pierre@ossman.eu>
Sat, 13 Jun 2009 20:43:00 +0000 (22:43 +0200)
Use an IRQF_TRIGGER_ flag in request_irq instead.

Signed-off-by: Philipp Zabel <philipp.zabel@gmail.com>
Acked-by: Ian Molton <ian@mnementh.co.uk>
Signed-off-by: Pierre Ossman <pierre@ossman.eu>
drivers/mmc/host/tmio_mmc.c

index 01add9bd628984384aca3b9950bcd4f9c15b1962..bbcbd72a46a4e8c8f78a7aee0676b9137e337add 100644 (file)
@@ -597,13 +597,11 @@ static int __devinit tmio_mmc_probe(struct platform_device *dev)
 
        disable_mmc_irqs(host, TMIO_MASK_ALL);
 
-       ret = request_irq(host->irq, tmio_mmc_irq, IRQF_DISABLED, "tmio-mmc",
-               host);
+       ret = request_irq(host->irq, tmio_mmc_irq, IRQF_DISABLED |
+               IRQF_TRIGGER_FALLING, "tmio-mmc", host);
        if (ret)
                goto unmap_cnf;
 
-       set_irq_type(host->irq, IRQ_TYPE_EDGE_FALLING);
-
        mmc_add_host(mmc);
 
        printk(KERN_INFO "%s at 0x%08lx irq %d\n", mmc_hostname(host->mmc),