summaryrefslogtreecommitdiff
path: root/drivers/mfd/asic3.c
diff options
context:
space:
mode:
authorSamuel Ortiz <sameo@linux.intel.com>2012-04-16 23:28:29 +0400
committerSamuel Ortiz <sameo@linux.intel.com>2012-05-01 14:00:23 +0400
commit12693f6c1ff6f43f34a0d105307976337f64dcdd (patch)
tree6e0988c6e9626c4aef5d77817ed2f6b3f9a29fff /drivers/mfd/asic3.c
parent201cf052810d20814a77ca0e0045a2c1a3508a1f (diff)
downloadlinux-12693f6c1ff6f43f34a0d105307976337f64dcdd.tar.xz
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>
Diffstat (limited to 'drivers/mfd/asic3.c')
-rw-r--r--drivers/mfd/asic3.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mfd/asic3.c b/drivers/mfd/asic3.c
index 9d4a492e4295..383421bf5760 100644
--- a/drivers/mfd/asic3.c
+++ b/drivers/mfd/asic3.c
@@ -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,