From: Lad, Prabhakar Date: Thu, 8 Jan 2015 08:17:58 +0000 (+0000) Subject: fbdev: ssd1307fb: set default height if not found in DT node X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=9561def0411bb810b6d3a53c15b03bfef4b1e2ab;p=linux-beck.git fbdev: ssd1307fb: set default height if not found in DT node this patch sets the default height if its not found in DT. Signed-off-by: Lad, Prabhakar Acked-by: Maxime Ripard Signed-off-by: Tomi Valkeinen --- diff --git a/drivers/video/fbdev/ssd1307fb.c b/drivers/video/fbdev/ssd1307fb.c index 31d845bf79a8..3d6611f1958f 100644 --- a/drivers/video/fbdev/ssd1307fb.c +++ b/drivers/video/fbdev/ssd1307fb.c @@ -443,7 +443,7 @@ static int ssd1307fb_probe(struct i2c_client *client, par->width = 96; if (of_property_read_u32(node, "solomon,height", &par->height)) - par->width = 16; + par->height = 16; if (of_property_read_u32(node, "solomon,page-offset", &par->page_offset)) par->page_offset = 1;