mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
mtd: denali_dt: Fix incorrect error check
The return value of devm_ioremap_nocache should be checked here instead of res. Signed-off-by: Sachin Kamat <[email protected]> Signed-off-by: Artem Bityutskiy <[email protected]> Signed-off-by: David Woodhouse <[email protected]>
This commit is contained in:
parent
837a6ba4f3
commit
6c67050ab1
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue