diff options
author | Chuhong Yuan <hslester96@gmail.com> | 2019-11-18 19:41:50 +0800 |
---|---|---|
committer | Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com> | 2020-01-15 17:31:42 +0100 |
commit | ac0c2558161d7bf273fcf980d291eb338f47787b (patch) | |
tree | 91acd6cc92249bff519069f15b318b55b314f54f | |
parent | 366c5aa18c128966b1768805cb69e40bb92e9664 (diff) | |
download | linux-ac0c2558161d7bf273fcf980d291eb338f47787b.tar.gz linux-ac0c2558161d7bf273fcf980d291eb338f47787b.tar.bz2 linux-ac0c2558161d7bf273fcf980d291eb338f47787b.zip |
video: ssd1307fb: add the missed regulator_disable
The driver forgets to disable the regulator in remove like what is done
in probe failure.
Add the missed call to fix it.
Signed-off-by: Chuhong Yuan <hslester96@gmail.com>
Tested-by: Michal Vokáč <michal.vokac@ysoft.com>
Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20191118114150.25724-1-hslester96@gmail.com
-rw-r--r-- | drivers/video/fbdev/ssd1307fb.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/video/fbdev/ssd1307fb.c b/drivers/video/fbdev/ssd1307fb.c index 142535267fec..1a0bd78f9345 100644 --- a/drivers/video/fbdev/ssd1307fb.c +++ b/drivers/video/fbdev/ssd1307fb.c @@ -791,6 +791,8 @@ static int ssd1307fb_remove(struct i2c_client *client) pwm_disable(par->pwm); pwm_put(par->pwm); } + if (par->vbat_reg) + regulator_disable(par->vbat_reg); fb_deferred_io_cleanup(info); __free_pages(__va(info->fix.smem_start), get_order(info->fix.smem_len)); framebuffer_release(info); |