|
@@ -2077,8 +2077,9 @@ static int gpmc_probe_generic_child(struct platform_device *pdev,
|
|
|
} else {
|
|
|
ret = of_property_read_u32(child, "bank-width",
|
|
|
&gpmc_s.device_width);
|
|
|
- if (ret < 0) {
|
|
|
- dev_err(&pdev->dev, "%pOF has no 'bank-width' property\n",
|
|
|
+ if (ret < 0 && !gpmc_s.device_width) {
|
|
|
+ dev_err(&pdev->dev,
|
|
|
+ "%pOF has no 'gpmc,device-width' property\n",
|
|
|
child);
|
|
|
goto err;
|
|
|
}
|