This patch turns off the display when the driver is unloaded.

Signed-off-by: Thomas Niederprüm <nied...@physik.uni-kl.de>
Acked-by: Maxime Ripard <maxime.rip...@free-electrons.com>
---
 drivers/video/fbdev/ssd1307fb.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/video/fbdev/ssd1307fb.c b/drivers/video/fbdev/ssd1307fb.c
index b38973e..6149827 100644
--- a/drivers/video/fbdev/ssd1307fb.c
+++ b/drivers/video/fbdev/ssd1307fb.c
@@ -625,6 +625,8 @@ static int ssd1307fb_remove(struct i2c_client *client)
        struct fb_info *info = i2c_get_clientdata(client);
        struct ssd1307fb_par *par = info->par;
 
+       ssd1307fb_write_cmd(par->client, SSD1307FB_DISPLAY_OFF);
+
        unregister_framebuffer(info);
        if (par->device_info->need_pwm) {
                pwm_disable(par->pwm);
-- 
2.3.0

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to