diff options
author | Varka Bhadram <varkabhadram@gmail.com> | 2014-10-21 05:06:58 -0400 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2014-10-31 05:58:39 -0400 |
commit | 0c49e2f668a50783519ed7de8f938ad12746cdc2 (patch) | |
tree | b528f750bff02c85e68ed817a609f31692778cc4 /drivers/pinctrl | |
parent | d5e9fb31baa2b1fd6d2043c748e6ff9313dfa8b5 (diff) |
pinctrl-bcm281xx: remove duplicate check on resource
Sanity check on resource happening with devm_ioremap_resource().
Signed-off-by: Varka Bhadram <varkab@cdac.in>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/pinctrl')
-rw-r--r-- | drivers/pinctrl/pinctrl-bcm281xx.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/pinctrl/pinctrl-bcm281xx.c b/drivers/pinctrl/pinctrl-bcm281xx.c index a26e0c2ba33e..2b25047fef8d 100644 --- a/drivers/pinctrl/pinctrl-bcm281xx.c +++ b/drivers/pinctrl/pinctrl-bcm281xx.c | |||
@@ -1404,11 +1404,6 @@ static int __init bcm281xx_pinctrl_probe(struct platform_device *pdev) | |||
1404 | 1404 | ||
1405 | /* So far We can assume there is only 1 bank of registers */ | 1405 | /* So far We can assume there is only 1 bank of registers */ |
1406 | res = platform_get_resource(pdev, IORESOURCE_MEM, 0); | 1406 | res = platform_get_resource(pdev, IORESOURCE_MEM, 0); |
1407 | if (!res) { | ||
1408 | dev_err(&pdev->dev, "Missing MEM resource\n"); | ||
1409 | return -ENODEV; | ||
1410 | } | ||
1411 | |||
1412 | pdata->reg_base = devm_ioremap_resource(&pdev->dev, res); | 1407 | pdata->reg_base = devm_ioremap_resource(&pdev->dev, res); |
1413 | if (IS_ERR(pdata->reg_base)) { | 1408 | if (IS_ERR(pdata->reg_base)) { |
1414 | dev_err(&pdev->dev, "Failed to ioremap MEM resource\n"); | 1409 | dev_err(&pdev->dev, "Failed to ioremap MEM resource\n"); |