[PATCH] fixup! video: add support for Solomon SSD1307 OLED controller family

Uwe Kleine-König u.kleine-koenig at pengutronix.de
Fri Mar 3 01:06:33 PST 2017


---
 drivers/video/ssd1307fb.c | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/drivers/video/ssd1307fb.c b/drivers/video/ssd1307fb.c
index ff4af2cdf493..7437d340ee41 100644
--- a/drivers/video/ssd1307fb.c
+++ b/drivers/video/ssd1307fb.c
@@ -415,9 +415,10 @@ static int ssd1307fb_probe(struct device_d *dev)
 					 "reset-gpios", 0);
 	if (!gpio_is_valid(par->reset)) {
 		ret = par->reset;
-		dev_err(&client->dev,
-			"Couldn't get named gpio 'reset-gpios': %s.\n",
-			strerror(-ret));
+		if (ret != -EPROBE_DEFER)
+			dev_err(&client->dev,
+				"Couldn't get named gpio 'reset-gpios': %s.\n",
+				strerror(-ret));
 		goto fb_alloc_error;
 	}
 
-- 
2.11.0




More information about the barebox mailing list