Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c9eabf40 authored by Uwe Kleine-König's avatar Uwe Kleine-König Committed by Tony Lindgren
Browse files

memory: omap-gpmc: add error message if bank-width property is absent



Instead of failing silently log a hint for the dt author about the
reason of the failure.

Signed-off-by: default avatarUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Acked-by: default avatarRoger Quadros <rogerq@ti.com>
Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
parent 95c278b2
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -2083,9 +2083,12 @@ 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)
		if (ret < 0) {
			dev_err(&pdev->dev, "%s has no 'bank-width' property\n",
				child->full_name);
			goto err;
		}
	}

	/* Reserve wait pin if it is required and valid */
	if (gpmc_s.wait_on_read || gpmc_s.wait_on_write) {