diff options
author | Jingoo Han <jg1.han@samsung.com> | 2014-05-13 23:17:14 -0400 |
---|---|---|
committer | Lee Jones <lee.jones@linaro.org> | 2014-06-03 03:11:42 -0400 |
commit | 63c348cb2b9c41fad259e6471692927f95e61d27 (patch) | |
tree | a9aac74c9eee277be79ff5cf18485c6ea3d7ff64 | |
parent | dcc21cc09e3c22d0ede4e105afa8884eba293b58 (diff) |
mfd: ipaq-micro: Use devm_ioremap_resource()
Use devm_ioremap_resource() because devm_request_and_ioremap() is
obsoleted by devm_ioremap_resource().
Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
-rw-r--r-- | drivers/mfd/ipaq-micro.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/mfd/ipaq-micro.c b/drivers/mfd/ipaq-micro.c index 1763d6db346e..5d08daf3bd2b 100644 --- a/drivers/mfd/ipaq-micro.c +++ b/drivers/mfd/ipaq-micro.c | |||
@@ -403,17 +403,17 @@ static int micro_probe(struct platform_device *pdev) | |||
403 | if (!res) | 403 | if (!res) |
404 | return -EINVAL; | 404 | return -EINVAL; |
405 | 405 | ||
406 | micro->base = devm_request_and_ioremap(&pdev->dev, res); | 406 | micro->base = devm_ioremap_resource(&pdev->dev, res); |
407 | if (!micro->base) | 407 | if (IS_ERR(micro->base)) |
408 | return -ENOMEM; | 408 | return PTR_ERR(micro->base); |
409 | 409 | ||
410 | res = platform_get_resource(pdev, IORESOURCE_MEM, 1); | 410 | res = platform_get_resource(pdev, IORESOURCE_MEM, 1); |
411 | if (!res) | 411 | if (!res) |
412 | return -EINVAL; | 412 | return -EINVAL; |
413 | 413 | ||
414 | micro->sdlc = devm_request_and_ioremap(&pdev->dev, res); | 414 | micro->sdlc = devm_ioremap_resource(&pdev->dev, res); |
415 | if (!micro->sdlc) | 415 | if (IS_ERR(micro->sdlc)) |
416 | return -ENOMEM; | 416 | return PTR_ERR(micro->sdlc); |
417 | 417 | ||
418 | micro_reset_comm(micro); | 418 | micro_reset_comm(micro); |
419 | 419 | ||