提交 f9988fbb 编写于 作者: A Arnd Bergmann

Merge tag 'gpmc-omap-for-v4.16-immutable' of https://github.com/rogerq/linux into next/drivers

Pull "OMAP-GPMC: driver updates for v4.16" from Roger Quadros:

* Error out only if both 'bank-width' and 'gpmc,device-width' DT properties are missing.

* tag 'gpmc-omap-for-v4.16-immutable' of https://github.com/rogerq/linux:
  memory: omap-gpmc: Make 'bank-width' property optional
...@@ -2077,8 +2077,9 @@ static int gpmc_probe_generic_child(struct platform_device *pdev, ...@@ -2077,8 +2077,9 @@ static int gpmc_probe_generic_child(struct platform_device *pdev,
} else { } else {
ret = of_property_read_u32(child, "bank-width", ret = of_property_read_u32(child, "bank-width",
&gpmc_s.device_width); &gpmc_s.device_width);
if (ret < 0) { if (ret < 0 && !gpmc_s.device_width) {
dev_err(&pdev->dev, "%pOF has no 'bank-width' property\n", dev_err(&pdev->dev,
"%pOF has no 'gpmc,device-width' property\n",
child); child);
goto err; goto err;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册