projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
71ef1ea
)
mmc: mvsdio: Convert to devm_ioremap_resource
author
Sachin Kamat
<sachin.kamat@linaro.org>
Thu, 12 Sep 2013 06:46:34 +0000
(12:16 +0530)
committer
Chris Ball
<cjb@laptop.org>
Thu, 26 Sep 2013 01:57:16 +0000
(21:57 -0400)
devm_request_and_ioremap() is deprecated. Use devm_ioremap_resource()
instead.
Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: Chris Ball <cjb@laptop.org>
drivers/mmc/host/mvsdio.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/mmc/host/mvsdio.c
b/drivers/mmc/host/mvsdio.c
index 06c5b0b28ebc99f547b88fb9be47a43196872ff8..a592407d2de616d85cb442d6ead34e72f5fc6649 100644
(file)
--- a/
drivers/mmc/host/mvsdio.c
+++ b/
drivers/mmc/host/mvsdio.c
@@
-775,9
+775,9
@@
static int __init mvsd_probe(struct platform_device *pdev)
spin_lock_init(&host->lock);
- host->base = devm_
request_and_ioremap
(&pdev->dev, r);
- if (
!host->base
) {
- ret =
-ENOMEM
;
+ host->base = devm_
ioremap_resource
(&pdev->dev, r);
+ if (
IS_ERR(host->base)
) {
+ ret =
PTR_ERR(host->base)
;
goto out;
}