]> git.baikalelectronics.ru Git - kernel.git/commit
fbdev: s1d13xxxfb: add missed unregister_framebuffer in remove
authorChuhong Yuan <hslester96@gmail.com>
Tue, 24 Mar 2020 13:23:11 +0000 (21:23 +0800)
committerBartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Fri, 17 Apr 2020 13:50:12 +0000 (15:50 +0200)
commit250545c2154bacf1e6b95d6b256484b707faadd7
treec0f92bcf646058042c1f170cf34d7a393cff5d8e
parentfd828cbe939556ced97469f5ca615a615db74007
fbdev: s1d13xxxfb: add missed unregister_framebuffer in remove

The driver calls register_framebuffer() in probe but does not call
unregister_framebuffer() in remove.
Rename current remove to __s1d13xxxfb_remove() for error handler.
Then add a new remove to call unregister_framebuffer().

Signed-off-by: Chuhong Yuan <hslester96@gmail.com>
Cc: Kristoffer Ericson <kristoffer.ericson@gmail.com>
[b.zolnierkie: ported over recent s1d13xxxfb changes]
[b.zolnierkie: removed extra newline]
Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200324132311.21729-1-hslester96@gmail.com
drivers/video/fbdev/s1d13xxxfb.c