mfd: No need to check for the GPIO offset from asic3_gpio_to_irq
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>
This commit is contained in:
parent
201cf05281
commit
12693f6c1f
|
@ -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);
|
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,
|
static __init int asic3_gpio_probe(struct platform_device *pdev,
|
||||||
|
|
Loading…
Reference in New Issue