summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Brezillon <boris.brezillon@free-electrons.com>2018-01-12 17:28:57 +0300
committerBoris Brezillon <boris.brezillon@free-electrons.com>2018-01-12 17:28:57 +0300
commitd2ad1fb1e718e0104e86ebadae915d3bf056a011 (patch)
treecf67aee6d914413d04214af6fd447c05d6671193
parentdd533734395f0e14db12d82fc64a879c805743dd (diff)
parentc18a7ac3398d0cef29749f9568666db8321aa4c9 (diff)
downloadlinux-d2ad1fb1e718e0104e86ebadae915d3bf056a011.tar.xz
Merge tag 'gpmc-omap-for-v4.16-immutable' of https://github.com/rogerq/linux into nand/next
Pull changes needed for omap OneNAND changes from Roger Quadros: OMAP-GPMC: driver updates for v4.16 * Error out only if both 'bank-width' and 'gpmc,device-width' DT properties are missing.
-rw-r--r--drivers/memory/omap-gpmc.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/memory/omap-gpmc.c b/drivers/memory/omap-gpmc.c
index a385a35c7de9..0e30ee1c8677 100644
--- a/drivers/memory/omap-gpmc.c
+++ b/drivers/memory/omap-gpmc.c
@@ -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;
}