projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
837a6ba
)
mtd: denali_dt: Fix incorrect error check
author
Sachin Kamat
<sachin.kamat@linaro.org>
Mon, 18 Mar 2013 09:41:11 +0000
(15:11 +0530)
committer
David Woodhouse
<David.Woodhouse@intel.com>
Fri, 5 Apr 2013 13:03:53 +0000
(14:03 +0100)
The return value of devm_ioremap_nocache should be checked here instead
of res.
Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
drivers/mtd/nand/denali_dt.c
patch
|
blob
|
history
diff --git
a/drivers/mtd/nand/denali_dt.c
b/drivers/mtd/nand/denali_dt.c
index 546f8cb5688d52ce80a10df1cd82810b256a9adb..02988b00031acab08b0ee46532e7234fd11eb770 100644
(file)
--- a/
drivers/mtd/nand/denali_dt.c
+++ b/
drivers/mtd/nand/denali_dt.c
@@
-42,7
+42,7
@@
static void __iomem *request_and_map(struct device *dev,
}
ptr = devm_ioremap_nocache(dev, res->start, resource_size(res));
- if (!
res
)
+ if (!
ptr
)
dev_err(dev, "ioremap_nocache of %s failed!", res->name);
return ptr;