Skip to content

Commit

Permalink
mfd: No need to check for the GPIO offset from asic3_gpio_to_irq
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Samuel Ortiz committed May 1, 2012
1 parent 201cf05 commit 12693f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/mfd/asic3.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 12693f6

Please sign in to comment.