|
@@ -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;
|