aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pinctrl/pinctrl-xway.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/pinctrl/pinctrl-xway.c')
-rw-r--r--drivers/pinctrl/pinctrl-xway.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/drivers/pinctrl/pinctrl-xway.c b/drivers/pinctrl/pinctrl-xway.c
index 53cb6a3a56ed..068224efa6fa 100644
--- a/drivers/pinctrl/pinctrl-xway.c
+++ b/drivers/pinctrl/pinctrl-xway.c
@@ -9,6 +9,7 @@
9 * Copyright (C) 2012 John Crispin <blogic@openwrt.org> 9 * Copyright (C) 2012 John Crispin <blogic@openwrt.org>
10 */ 10 */
11 11
12#include <linux/err.h>
12#include <linux/slab.h> 13#include <linux/slab.h>
13#include <linux/module.h> 14#include <linux/module.h>
14#include <linux/of_platform.h> 15#include <linux/of_platform.h>
@@ -719,11 +720,9 @@ static int pinmux_xway_probe(struct platform_device *pdev)
719 dev_err(&pdev->dev, "Failed to get resource\n"); 720 dev_err(&pdev->dev, "Failed to get resource\n");
720 return -ENOENT; 721 return -ENOENT;
721 } 722 }
722 xway_info.membase[0] = devm_request_and_ioremap(&pdev->dev, res); 723 xway_info.membase[0] = devm_ioremap_resource(&pdev->dev, res);
723 if (!xway_info.membase[0]) { 724 if (IS_ERR(xway_info.membase[0]))
724 dev_err(&pdev->dev, "Failed to remap resource\n"); 725 return PTR_ERR(xway_info.membase[0]);
725 return -ENOMEM;
726 }
727 726
728 match = of_match_device(xway_match, &pdev->dev); 727 match = of_match_device(xway_match, &pdev->dev);
729 if (match) 728 if (match)