From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from metis.ext.pengutronix.de ([2001:67c:670:201:290:27ff:fe1d:cc33]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZC3lN-0002T9-Tg for barebox@lists.infradead.org; Mon, 06 Jul 2015 10:36:39 +0000 From: Sascha Hauer Date: Mon, 6 Jul 2015 12:36:10 +0200 Message-Id: <1436178974-20064-5-git-send-email-s.hauer@pengutronix.de> In-Reply-To: <1436178974-20064-1-git-send-email-s.hauer@pengutronix.de> References: <1436178974-20064-1-git-send-email-s.hauer@pengutronix.de> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "barebox" Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: [PATCH 5/9] video: stm: read interface width from device tree To: Barebox List The interface width has not been initialized when probed from device tree. Fix that. Signed-off-by: Sascha Hauer --- drivers/video/stm.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/video/stm.c b/drivers/video/stm.c index c825092..dd80a98 100644 --- a/drivers/video/stm.c +++ b/drivers/video/stm.c @@ -553,6 +553,12 @@ static int stmfb_probe(struct device_d *hw_dev) fbi.info.modes.modes = modes->modes; fbi.info.modes.num_modes = modes->num_modes; + + ret = of_property_read_u32(display, "bus-width", &fbi.ld_intf_width); + if (ret < 0) { + dev_err(hw_dev, "failed to get bus-width property\n"); + return -EINVAL; + } } ret = register_framebuffer(&fbi.info); -- 2.1.4 _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox