summaryrefslogtreecommitdiff
path: root/drivers/video
diff options
context:
space:
mode:
authorThomas Niederprüm <niederp@physik.uni-kl.de>2015-03-31 21:27:14 +0300
committerTomi Valkeinen <tomi.valkeinen@ti.com>2015-05-27 12:54:35 +0300
commit13bad59730c31e876588977534b6b6a46ce876ae (patch)
tree9a879b2802b1dbdc157b616dd02b76f4588fa813 /drivers/video
parent3277e0bb8fc737174bd5e2fae5598b1595cfcdbe (diff)
downloadlinux-13bad59730c31e876588977534b6b6a46ce876ae.tar.xz
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>
Diffstat (limited to 'drivers/video')
-rw-r--r--drivers/video/fbdev/ssd1307fb.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/video/fbdev/ssd1307fb.c b/drivers/video/fbdev/ssd1307fb.c
index 85eeda0fc2e4..5f3d5a810c54 100644
--- a/drivers/video/fbdev/ssd1307fb.c
+++ b/drivers/video/fbdev/ssd1307fb.c
@@ -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);