summaryrefslogtreecommitdiffstats
path: root/drivers/gpio/gpio-tegra.c
diff options
context:
space:
mode:
authorWolfram Sang <wsa@the-dreams.de>2013-05-12 15:19:47 +0200
committerWolfram Sang <wsa@the-dreams.de>2013-05-18 11:55:19 +0200
commit8cfc2a1fce75d763bf59dd2d9d40add758fe7b46 (patch)
tree36dd0907963a17603d5102890ee2514e3f801fa2 /drivers/gpio/gpio-tegra.c
parentdrivers/dma: don't check resource with devm_ioremap_resource (diff)
downloadlinux-8cfc2a1fce75d763bf59dd2d9d40add758fe7b46.tar.xz
linux-8cfc2a1fce75d763bf59dd2d9d40add758fe7b46.zip
drivers/gpio: don't check resource with devm_ioremap_resource
devm_ioremap_resource does sanity checks on the given resource. No need to duplicate this in the driver. Signed-off-by: Wolfram Sang <wsa@the-dreams.de> Acked-by: Stephen Warren <swarren@nvidia.com>
Diffstat (limited to 'drivers/gpio/gpio-tegra.c')
-rw-r--r--drivers/gpio/gpio-tegra.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/gpio/gpio-tegra.c b/drivers/gpio/gpio-tegra.c
index da4cb5b0cb87..9a62672f1bed 100644
--- a/drivers/gpio/gpio-tegra.c
+++ b/drivers/gpio/gpio-tegra.c
@@ -463,11 +463,6 @@ static int tegra_gpio_probe(struct platform_device *pdev)
}
res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
- if (!res) {
- dev_err(&pdev->dev, "Missing MEM resource\n");
- return -ENODEV;
- }
-
regs = devm_ioremap_resource(&pdev->dev, res);
if (IS_ERR(regs))
return PTR_ERR(regs);