[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1423261694-5939-9-git-send-email-niederp@physik.uni-kl.de>
Date: Fri, 6 Feb 2015 23:28:14 +0100
From: niederp@...sik.uni-kl.de
To: linux-fbdev@...r.kernel.org, plagnioj@...osoft.com,
tomi.valkeinen@...com, maxime.ripard@...e-electrons.com
Cc: linux-kernel@...r.kernel.org,
Thomas Niederprüm <niederp@...sik.uni-kl.de>
Subject: [PATCH 8/8] fbdev: ssd1307fb: Turn off display on driver unload.
From: Thomas Niederprüm <niederp@...sik.uni-kl.de>
Signed-off-by: Thomas Niederprüm <niederp@...sik.uni-kl.de>
---
drivers/video/fbdev/ssd1307fb.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/drivers/video/fbdev/ssd1307fb.c b/drivers/video/fbdev/ssd1307fb.c
index 02931c7..be91dfc 100644
--- a/drivers/video/fbdev/ssd1307fb.c
+++ b/drivers/video/fbdev/ssd1307fb.c
@@ -762,6 +762,11 @@ static int ssd1307fb_remove(struct i2c_client *client)
{
struct fb_info *info = i2c_get_clientdata(client);
struct ssd1307fb_par *par = info->par;
+ int ret = 0;
+
+ ret = ssd1307fb_write_cmd(par->client, SSD1307FB_DISPLAY_OFF);
+ if (ret < 0)
+ return ret;
unregister_framebuffer(info);
if (par->device_info->device_id == DEVID_SSD1307) {
--
2.1.1
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists