aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pwm/pwm-spear.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/pwm/pwm-spear.c')
-rw-r--r--drivers/pwm/pwm-spear.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/pwm/pwm-spear.c b/drivers/pwm/pwm-spear.c
index 83b21d9d5cf9..69a2d9eb34db 100644
--- a/drivers/pwm/pwm-spear.c
+++ b/drivers/pwm/pwm-spear.c
@@ -192,9 +192,9 @@ static int spear_pwm_probe(struct platform_device *pdev)
192 return -ENOMEM; 192 return -ENOMEM;
193 } 193 }
194 194
195 pc->mmio_base = devm_request_and_ioremap(&pdev->dev, r); 195 pc->mmio_base = devm_ioremap_resource(&pdev->dev, r);
196 if (!pc->mmio_base) 196 if (IS_ERR(pc->mmio_base))
197 return -EADDRNOTAVAIL; 197 return PTR_ERR(pc->mmio_base);
198 198
199 pc->clk = devm_clk_get(&pdev->dev, NULL); 199 pc->clk = devm_clk_get(&pdev->dev, NULL);
200 if (IS_ERR(pc->clk)) 200 if (IS_ERR(pc->clk))