From 1203a1e6424d502e9c12d29512218487af5fdd1c Mon Sep 17 00:00:00 2001 From: Axel Lin Date: Wed, 25 Aug 2010 11:20:25 +0800 Subject: [PATCH] mfd: Remove redundant code to get htc_pasic3 irq There is no reason to get irq twice. Signed-off-by: Axel Lin Signed-off-by: Samuel Ortiz --- drivers/mfd/htc-pasic3.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/drivers/mfd/htc-pasic3.c b/drivers/mfd/htc-pasic3.c index f04300e05fd6..7bc752272dc1 100644 --- a/drivers/mfd/htc-pasic3.c +++ b/drivers/mfd/htc-pasic3.c @@ -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; -- 2.20.1