diff options
Diffstat (limited to 'drivers/rtc/rtc-spear.c')
| -rw-r--r-- | drivers/rtc/rtc-spear.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/drivers/rtc/rtc-spear.c b/drivers/rtc/rtc-spear.c index c2121b5a01f2..a18c3192ed40 100644 --- a/drivers/rtc/rtc-spear.c +++ b/drivers/rtc/rtc-spear.c | |||
| @@ -385,11 +385,9 @@ static int spear_rtc_probe(struct platform_device *pdev) | |||
| 385 | return status; | 385 | return status; |
| 386 | } | 386 | } |
| 387 | 387 | ||
| 388 | config->ioaddr = devm_request_and_ioremap(&pdev->dev, res); | 388 | config->ioaddr = devm_ioremap_resource(&pdev->dev, res); |
| 389 | if (!config->ioaddr) { | 389 | if (IS_ERR(config->ioaddr)) |
| 390 | dev_err(&pdev->dev, "request-ioremap fail\n"); | 390 | return PTR_ERR(config->ioaddr); |
| 391 | return -ENOMEM; | ||
| 392 | } | ||
| 393 | 391 | ||
| 394 | config->clk = devm_clk_get(&pdev->dev, NULL); | 392 | config->clk = devm_clk_get(&pdev->dev, NULL); |
| 395 | if (IS_ERR(config->clk)) | 393 | if (IS_ERR(config->clk)) |
