[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20191118080900.30634-1-hslester96@gmail.com>
Date: Mon, 18 Nov 2019 16:09:00 +0800
From: Chuhong Yuan <hslester96@...il.com>
To: unlisted-recipients:; (no To-header on input)
Cc: Kristoffer Ericson <kristoffer.ericson@...il.com>,
Bartlomiej Zolnierkiewicz <b.zolnierkie@...sung.com>,
dri-devel@...ts.freedesktop.org, linux-fbdev@...r.kernel.org,
linux-kernel@...r.kernel.org, Chuhong Yuan <hslester96@...il.com>
Subject: [PATCH] fbdev: s1d13xxxfb: add missed unregister_framebuffer in remove
The driver calls register_framebuffer in probe but does not call
unregister_framebuffer in remove.
Add the missed call to fix it.
Signed-off-by: Chuhong Yuan <hslester96@...il.com>
---
drivers/video/fbdev/s1d13xxxfb.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/video/fbdev/s1d13xxxfb.c b/drivers/video/fbdev/s1d13xxxfb.c
index e04efb567b5c..162003ea6b79 100644
--- a/drivers/video/fbdev/s1d13xxxfb.c
+++ b/drivers/video/fbdev/s1d13xxxfb.c
@@ -729,6 +729,7 @@ s1d13xxxfb_remove(struct platform_device *pdev)
struct s1d13xxxfb_par *par = NULL;
if (info) {
+ unregister_framebuffer(info);
par = info->par;
if (par && par->regs) {
/* disable output & enable powersave */
--
2.24.0
Powered by blists - more mailing lists