mfd: No need to check for the GPIO offset from asic3_gpio_to_irq
authorSamuel Ortiz <sameo@linux.intel.com>
Mon, 16 Apr 2012 19:28:29 +0000 (21:28 +0200)
committerSamuel Ortiz <sameo@linux.intel.com>
Tue, 1 May 2012 10:00:23 +0000 (12:00 +0200)
The gpiolib code will only call our gpio_to_irq ops for our registered
GPIO range.

Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
drivers/mfd/asic3.c

index 9d4a492e429510cdfcba2cd6297d677f3810c43f..383421bf57609a994b7f8d537f97c269d2ab6302 100644 (file)
@@ -545,7 +545,7 @@ static int asic3_gpio_to_irq(struct gpio_chip *chip, unsigned offset)
 {
        struct asic3 *asic = container_of(chip, struct asic3, gpio);
 
-       return (offset < ASIC3_NUM_GPIOS) ? asic->irq_base + offset : -ENXIO;
+       return asic->irq_base + offset;
 }
 
 static __init int asic3_gpio_probe(struct platform_device *pdev,
This page took 0.026308 seconds and 5 git commands to generate.