diff options
author | Wolfram Sang <wsa@the-dreams.de> | 2013-05-12 15:19:50 +0200 |
---|---|---|
committer | Wolfram Sang <wsa@the-dreams.de> | 2013-05-18 11:55:56 +0200 |
commit | 0497a59450a70fcecffc288f9d864d6c778746ee (patch) | |
tree | c166697710c9baffc67aa462414ed1e1cc77d185 /drivers/pinctrl/pinctrl-exynos5440.c | |
parent | drivers/net/ethernet/renesas: don't check resource with devm_ioremap_resource (diff) | |
download | linux-0497a59450a70fcecffc288f9d864d6c778746ee.tar.xz linux-0497a59450a70fcecffc288f9d864d6c778746ee.zip |
drivers/pinctrl: 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>
Diffstat (limited to 'drivers/pinctrl/pinctrl-exynos5440.c')
-rw-r--r-- | drivers/pinctrl/pinctrl-exynos5440.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/pinctrl/pinctrl-exynos5440.c b/drivers/pinctrl/pinctrl-exynos5440.c index 6038503ed929..32a48f44f574 100644 --- a/drivers/pinctrl/pinctrl-exynos5440.c +++ b/drivers/pinctrl/pinctrl-exynos5440.c @@ -1000,11 +1000,6 @@ static int exynos5440_pinctrl_probe(struct platform_device *pdev) } res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - if (!res) { - dev_err(dev, "cannot find IO resource\n"); - return -ENOENT; - } - priv->reg_base = devm_ioremap_resource(&pdev->dev, res); if (IS_ERR(priv->reg_base)) return PTR_ERR(priv->reg_base); |