Commit 13bad597 authored by Thomas Niederprüm's avatar Thomas Niederprüm Committed by Tomi Valkeinen

fbdev: ssd1307fb: Turn off display on driver unload.

This patch turns off the display when the driver is unloaded.
Signed-off-by: default avatarThomas Niederprüm <niederp@physik.uni-kl.de>
Acked-by: default avatarMaxime Ripard <maxime.ripard@free-electrons.com>
Signed-off-by: default avatarTomi Valkeinen <tomi.valkeinen@ti.com>
parent 3277e0bb
......@@ -620,6 +620,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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment