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>
This commit is contained in:
parent
929980ab1b
commit
1203a1e642
1 changed files with 0 additions and 7 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue