summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2017-12-21 10:23:36 -0500
committerArnd Bergmann <arnd@arndb.de>2017-12-21 10:23:36 -0500
commitf9988fbb93c8c4de9f8ec37f63ebb7bf705c7c45 (patch)
treeeffc22f981900804da8405f54188c87ca125e5c9
parenta8e9f5f6725129d19b73dbe1211b38e8688b9f0b (diff)
parentc18a7ac3398d0cef29749f9568666db8321aa4c9 (diff)
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
-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,
2077 } else { 2077 } else {
2078 ret = of_property_read_u32(child, "bank-width", 2078 ret = of_property_read_u32(child, "bank-width",
2079 &gpmc_s.device_width); 2079 &gpmc_s.device_width);
2080 if (ret < 0) { 2080 if (ret < 0 && !gpmc_s.device_width) {
2081 dev_err(&pdev->dev, "%pOF has no 'bank-width' property\n", 2081 dev_err(&pdev->dev,
2082 "%pOF has no 'gpmc,device-width' property\n",
2082 child); 2083 child);
2083 goto err; 2084 goto err;
2084 } 2085 }