diff options
author | Mayuresh Kulkarni <mkulkarni@nvidia.com> | 2012-04-24 14:54:04 +0530 |
---|---|---|
committer | Varun Wadekar <vwadekar@nvidia.com> | 2012-04-24 22:52:32 -0700 |
commit | ea1c0bd769f75a5b099a2a3d3533e4e9c90a3ab4 (patch) | |
tree | ddb0dda9ddca2e113b2a8234e407f2ce4b2dc4f3 /drivers/gpio | |
parent | 72bbd1cddd61ae8b99ec39fc666a3a52770af1fa (diff) |
gpio: tegra: fix duplicate code
Change-Id: Iea26161a63de1f785375c96121716a44baa3b4d4
Signed-off-by: Mayuresh Kulkarni <mkulkarni@nvidia.com>
Reviewed-on: http://git-master/r/98403
Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>
Diffstat (limited to 'drivers/gpio')
-rw-r--r-- | drivers/gpio/gpio-tegra.c | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/drivers/gpio/gpio-tegra.c b/drivers/gpio/gpio-tegra.c index 1c506904f05d..649212b21b3f 100644 --- a/drivers/gpio/gpio-tegra.c +++ b/drivers/gpio/gpio-tegra.c @@ -473,19 +473,6 @@ static int __devinit tegra_gpio_probe(struct platform_device *pdev) tegra_gpio_bank_stride = config->bank_stride; tegra_gpio_upper_offset = config->upper_offset; - - for (i = 0; i < ARRAY_SIZE(tegra_gpio_banks); i++) { - res = platform_get_resource(pdev, IORESOURCE_IRQ, i); - if (!res) { - dev_err(&pdev->dev, "Missing IRQ resource\n"); - return -ENODEV; - } - - bank = &tegra_gpio_banks[i]; - bank->bank = i; - bank->irq = res->start; - } - tegra_gpio_chip.ngpio = ARRAY_SIZE(tegra_gpio_banks) * 32; irq_base = irq_alloc_descs(-1, 0, tegra_gpio_chip.ngpio, 0); |