aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pwm/pwm-tiehrpwm.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/pwm/pwm-tiehrpwm.c')
-rw-r--r--drivers/pwm/pwm-tiehrpwm.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/pwm/pwm-tiehrpwm.c b/drivers/pwm/pwm-tiehrpwm.c
index 72a6dd40c9ec..5a1399580533 100644
--- a/drivers/pwm/pwm-tiehrpwm.c
+++ b/drivers/pwm/pwm-tiehrpwm.c
@@ -453,9 +453,9 @@ static int ehrpwm_pwm_probe(struct platform_device *pdev)
453 return -ENODEV; 453 return -ENODEV;
454 } 454 }
455 455
456 pc->mmio_base = devm_request_and_ioremap(&pdev->dev, r); 456 pc->mmio_base = devm_ioremap_resource(&pdev->dev, r);
457 if (!pc->mmio_base) 457 if (IS_ERR(pc->mmio_base))
458 return -EADDRNOTAVAIL; 458 return PTR_ERR(pc->mmio_base);
459 459
460 /* Acquire tbclk for Time Base EHRPWM submodule */ 460 /* Acquire tbclk for Time Base EHRPWM submodule */
461 pc->tbclk = devm_clk_get(&pdev->dev, "tbclk"); 461 pc->tbclk = devm_clk_get(&pdev->dev, "tbclk");