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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



---
 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


_______________________________________________
barebox mailing list
barebox@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/barebox



[Index of Archives]     [Linux Embedded]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux