projects
/
profile
/
ivi
/
kernel-x86-ivi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
00d083f
)
drivers/memory: don't check resource with devm_ioremap_resource
author
Wolfram Sang
<wsa@the-dreams.de>
Sun, 12 May 2013 13:19:48 +0000
(15:19 +0200)
committer
Wolfram Sang
<wsa@the-dreams.de>
Sat, 18 May 2013 09:55:52 +0000
(11:55 +0200)
devm_ioremap_resource does sanity checks on the given resource. No need to
duplicate this in the driver.
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/memory/emif.c
patch
|
blob
|
history
diff --git
a/drivers/memory/emif.c
b/drivers/memory/emif.c
index cadf1cc19aafb918d03665815caffb0c11839155..04644e7b42b123ca5407840d11a9e412a26dc6dd 100644
(file)
--- a/
drivers/memory/emif.c
+++ b/
drivers/memory/emif.c
@@
-1560,12
+1560,6
@@
static int __init_or_module emif_probe(struct platform_device *pdev)
platform_set_drvdata(pdev, emif);
res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
- if (!res) {
- dev_err(emif->dev, "%s: error getting memory resource\n",
- __func__);
- goto error;
- }
-
emif->base = devm_ioremap_resource(emif->dev, res);
if (IS_ERR(emif->base))
goto error;