fbdev: ssd1307fb: Turn off display on driver unload.
This patch turns off the display when the driver is unloaded. Signed-off-by: Thomas Niederprüm <niederp@physik.uni-kl.de> Acked-by: Maxime Ripard <maxime.ripard@free-electrons.com> Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
This commit is contained in:
parent
3277e0bb8f
commit
13bad59730
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue