summaryrefslogtreecommitdiff
path: root/drivers/gpio
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpio')
-rw-r--r--drivers/gpio/gpio-tegra.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/gpio/gpio-tegra.c b/drivers/gpio/gpio-tegra.c
index 2f602ce8fba8..5d43ac1e0035 100644
--- a/drivers/gpio/gpio-tegra.c
+++ b/drivers/gpio/gpio-tegra.c
@@ -119,10 +119,6 @@ int tegra_gpio_get_bank_int_nr(int gpio)
{
int bank;
int irq;
- if (gpio >= TEGRA_NR_GPIOS) {
- pr_warn("%s : Invalid gpio ID - %d\n", __func__, gpio);
- return -EINVAL;
- }
bank = gpio >> 5;
irq = tegra_gpio_banks[bank].irq;
return irq;