summaryrefslogtreecommitdiffstats
path: root/drivers/pwm/pwm-lpc32xx.c
diff options
context:
space:
mode:
authorThierry Reding <thierry.reding@avionic-design.de>2013-01-21 05:09:16 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-01-22 14:41:57 -0500
commit6d4294d1634543853febc4287ecf02998fd234e1 (patch)
tree1614d14d3879557860ae9d78169e555f67c70170 /drivers/pwm/pwm-lpc32xx.c
parent9e0c1fb29a7c257a31c321c2437617b6b4d66168 (diff)
pwm: Convert to devm_ioremap_resource()
Convert all uses of devm_request_and_ioremap() to the newly introduced devm_ioremap_resource() which provides more consistent error handling. Signed-off-by: Thierry Reding <thierry.reding@avionic-design.de> Acked-by: Viresh Kumar <viresh.kumar@linaro.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/pwm/pwm-lpc32xx.c')
-rw-r--r--drivers/pwm/pwm-lpc32xx.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/pwm/pwm-lpc32xx.c b/drivers/pwm/pwm-lpc32xx.c
index 14106440294f..b3f0d0dfd748 100644
--- a/drivers/pwm/pwm-lpc32xx.c
+++ b/drivers/pwm/pwm-lpc32xx.c
@@ -110,9 +110,9 @@ static int lpc32xx_pwm_probe(struct platform_device *pdev)
110 if (!res) 110 if (!res)
111 return -EINVAL; 111 return -EINVAL;
112 112
113 lpc32xx->base = devm_request_and_ioremap(&pdev->dev, res); 113 lpc32xx->base = devm_ioremap_resource(&pdev->dev, res);
114 if (!lpc32xx->base) 114 if (IS_ERR(lpc32xx->base))
115 return -EADDRNOTAVAIL; 115 return PTR_ERR(lpc32xx->base);
116 116
117 lpc32xx->clk = devm_clk_get(&pdev->dev, NULL); 117 lpc32xx->clk = devm_clk_get(&pdev->dev, NULL);
118 if (IS_ERR(lpc32xx->clk)) 118 if (IS_ERR(lpc32xx->clk))