projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f735a4d
)
mtd: nand: davinci: check required ti,davinci-chipselect property
author
Ivan Khoronzhuk
<
[email protected]
>
Tue, 17 Dec 2013 13:36:44 +0000
(15:36 +0200)
committer
Brian Norris
<
[email protected]
>
Fri, 3 Jan 2014 19:22:25 +0000
(11:22 -0800)
The property "ti,davinci-chipselect" is required. So we have to check
if it is set.
Reviewed-by: Grygorii Strashko <
[email protected]
>
Reviewed-by: Taras Kondratiuk <
[email protected]
>
Signed-off-by: Ivan Khoronzhuk <
[email protected]
>
Signed-off-by: Brian Norris <
[email protected]
>
drivers/mtd/nand/davinci_nand.c
patch
|
blob
|
history
diff --git
a/drivers/mtd/nand/davinci_nand.c
b/drivers/mtd/nand/davinci_nand.c
index 4577fb41c0c71ba3934c6af698f7a90abe66ae09..9eea2695387192c60baa81261ddde1a6b54075ac 100644
(file)
--- a/
drivers/mtd/nand/davinci_nand.c
+++ b/
drivers/mtd/nand/davinci_nand.c
@@
-545,6
+545,9
@@
static struct davinci_nand_pdata
if (!of_property_read_u32(pdev->dev.of_node,
"ti,davinci-chipselect", &prop))
pdev->id = prop;
+ else
+ return ERR_PTR(-EINVAL);
+
if (!of_property_read_u32(pdev->dev.of_node,
"ti,davinci-mask-ale", &prop))
pdata->mask_ale = prop;