mfd: Remove redundant code to get htc_pasic3 irq
authorAxel Lin <axel.lin@gmail.com>
Wed, 25 Aug 2010 03:20:25 +0000 (11:20 +0800)
committerSamuel Ortiz <sameo@linux.intel.com>
Thu, 28 Oct 2010 22:29:01 +0000 (00:29 +0200)
There is no reason to get irq twice.

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
drivers/mfd/htc-pasic3.c

index f04300e05fd611d79e1c0acaf72bf79df57a44b3..7bc752272dc1db9465132c2731d83afc446bdc85 100644 (file)
@@ -138,13 +138,6 @@ static int __init pasic3_probe(struct platform_device *pdev)
                irq = r->start;
        }
 
-       r = platform_get_resource(pdev, IORESOURCE_IRQ, 0);
-       if (r) {
-               ds1wm_resources[1].flags = IORESOURCE_IRQ | (r->flags &
-                       (IORESOURCE_IRQ_HIGHEDGE | IORESOURCE_IRQ_LOWEDGE));
-               irq = r->start;
-       }
-
        r = platform_get_resource(pdev, IORESOURCE_MEM, 0);
        if (!r)
                return -ENXIO;