diff options
author | Varka Bhadram <varkabhadram@gmail.com> | 2014-10-28 02:37:05 -0400 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2014-10-31 04:02:34 -0400 |
commit | 5bb5428956d3eecb428e72e7f521ff6ac767384b (patch) | |
tree | c870133549e51d2a20cc16dce85a23c533fcb424 /drivers/gpio/gpio-davinci.c | |
parent | 2071d0968e564b4b4a11d36dc58de6e57188edd4 (diff) |
gpio: gpio-davinci: remove duplicate check on resource
Sanity check on resource happening with devm_ioremap_resource().
Signed-off-by: Varka Bhadram <varkab@cdac.in>
Acked-by: Alexandre Courbot <acourbot@nvidia.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/gpio/gpio-davinci.c')
-rw-r--r-- | drivers/gpio/gpio-davinci.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/gpio/gpio-davinci.c b/drivers/gpio/gpio-davinci.c index 9f0682534e2f..3faf5f944ccc 100644 --- a/drivers/gpio/gpio-davinci.c +++ b/drivers/gpio/gpio-davinci.c | |||
@@ -234,11 +234,6 @@ static int davinci_gpio_probe(struct platform_device *pdev) | |||
234 | return -ENOMEM; | 234 | return -ENOMEM; |
235 | 235 | ||
236 | res = platform_get_resource(pdev, IORESOURCE_MEM, 0); | 236 | res = platform_get_resource(pdev, IORESOURCE_MEM, 0); |
237 | if (!res) { | ||
238 | dev_err(dev, "Invalid memory resource\n"); | ||
239 | return -EBUSY; | ||
240 | } | ||
241 | |||
242 | gpio_base = devm_ioremap_resource(dev, res); | 237 | gpio_base = devm_ioremap_resource(dev, res); |
243 | if (IS_ERR(gpio_base)) | 238 | if (IS_ERR(gpio_base)) |
244 | return PTR_ERR(gpio_base); | 239 | return PTR_ERR(gpio_base); |