aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@gmail.com>2010-08-24 23:20:25 -0400
committerSamuel Ortiz <sameo@linux.intel.com>2010-10-28 18:29:01 -0400
commit1203a1e6424d502e9c12d29512218487af5fdd1c (patch)
treeaacb68e6b3e58d784843a57e440a828fc571d167
parent929980ab1b90b5a5c93db9b9b7d58cc6e93049c8 (diff)
mfd: Remove redundant code to get htc_pasic3 irq
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>
-rw-r--r--drivers/mfd/htc-pasic3.c7
1 files changed, 0 insertions, 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)
138 irq = r->start; 138 irq = r->start;
139 } 139 }
140 140
141 r = platform_get_resource(pdev, IORESOURCE_IRQ, 0);
142 if (r) {
143 ds1wm_resources[1].flags = IORESOURCE_IRQ | (r->flags &
144 (IORESOURCE_IRQ_HIGHEDGE | IORESOURCE_IRQ_LOWEDGE));
145 irq = r->start;
146 }
147
148 r = platform_get_resource(pdev, IORESOURCE_MEM, 0); 141 r = platform_get_resource(pdev, IORESOURCE_MEM, 0);
149 if (!r) 142 if (!r)
150 return -ENXIO; 143 return -ENXIO;