mirror of
https://github.com/torvalds/linux.git
synced 2024-11-24 05:02:12 +00:00
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>
This commit is contained in:
parent
2071d0968e
commit
5bb5428956
@ -234,11 +234,6 @@ static int davinci_gpio_probe(struct platform_device *pdev)
|
||||
return -ENOMEM;
|
||||
|
||||
res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
|
||||
if (!res) {
|
||||
dev_err(dev, "Invalid memory resource\n");
|
||||
return -EBUSY;
|
||||
}
|
||||
|
||||
gpio_base = devm_ioremap_resource(dev, res);
|
||||
if (IS_ERR(gpio_base))
|
||||
return PTR_ERR(gpio_base);
|
||||
|
Loading…
Reference in New Issue
Block a user