Skip to contentSkip to conversation

mfd: htc-pasic3 - remove redundant code to get irq

PATCH New Axel Lin 1 participant 1 message Aug 25, 2010 Multifunction devices (MFD)

lore
Share & tools
lore

Axel Lin

author
#0 lore raw

PATCH 1/1 mfd: htc-pasic3 - remove redundant code to get irq

There is no reason to get irq twice.

---
 drivers/mfd/htc-pasic3.c |    7 -------
 1 files changed, 0 insertions(+), 7 deletions(-)
drivers/mfd/htc-pasic3.c +0 -7
index f04300e..7bc7522 100644
@@ -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;
Signature · 1 line
1.7.2