aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pinctrl/pinctrl-pxa3xx.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/pinctrl/pinctrl-pxa3xx.c')
-rw-r--r--drivers/pinctrl/pinctrl-pxa3xx.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/pinctrl/pinctrl-pxa3xx.c b/drivers/pinctrl/pinctrl-pxa3xx.c
index 51f8a388b917..1f49bb02a6af 100644
--- a/drivers/pinctrl/pinctrl-pxa3xx.c
+++ b/drivers/pinctrl/pinctrl-pxa3xx.c
@@ -11,6 +11,7 @@
11 * 11 *
12 */ 12 */
13 13
14#include <linux/err.h>
14#include <linux/module.h> 15#include <linux/module.h>
15#include <linux/device.h> 16#include <linux/device.h>
16#include <linux/io.h> 17#include <linux/io.h>
@@ -187,9 +188,9 @@ int pxa3xx_pinctrl_register(struct platform_device *pdev,
187 res = platform_get_resource(pdev, IORESOURCE_MEM, 0); 188 res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
188 if (!res) 189 if (!res)
189 return -ENOENT; 190 return -ENOENT;
190 info->virt_base = devm_request_and_ioremap(&pdev->dev, res); 191 info->virt_base = devm_ioremap_resource(&pdev->dev, res);
191 if (!info->virt_base) 192 if (IS_ERR(info->virt_base))
192 return -ENOMEM; 193 return PTR_ERR(info->virt_base);
193 info->pctrl = pinctrl_register(desc, &pdev->dev, info); 194 info->pctrl = pinctrl_register(desc, &pdev->dev, info);
194 if (!info->pctrl) { 195 if (!info->pctrl) {
195 dev_err(&pdev->dev, "failed to register PXA pinmux driver\n"); 196 dev_err(&pdev->dev, "failed to register PXA pinmux driver\n");