projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5f33e64
)
drm: panel: simple: add missing platform_driver_unregister() in panel_simple_init
author
Qinglang Miao
<miaoqinglang@huawei.com>
Sat, 31 Oct 2020 01:18:56 +0000
(09:18 +0800)
committer
Sam Ravnborg
<sam@ravnborg.org>
Sun, 8 Nov 2020 09:55:15 +0000
(10:55 +0100)
Add the missing platform_driver_unregister() before return
from panel_simple_init in the error handling case when failed
to register panel_simple_dsi_driver with CONFIG_DRM_MIPI_DSI
enabled.
Signed-off-by: Qinglang Miao <miaoqinglang@huawei.com>
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Link:
https://patchwork.freedesktop.org/patch/msgid/20201031011856.137307-1-miaoqinglang@huawei.com
drivers/gpu/drm/panel/panel-simple.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/panel/panel-simple.c
b/drivers/gpu/drm/panel/panel-simple.c
index
1327df0
..
372a9bc
100644
(file)
--- a/
drivers/gpu/drm/panel/panel-simple.c
+++ b/
drivers/gpu/drm/panel/panel-simple.c
@@
-4675,8
+4675,10
@@
static int __init panel_simple_init(void)
if (IS_ENABLED(CONFIG_DRM_MIPI_DSI)) {
err = mipi_dsi_driver_register(&panel_simple_dsi_driver);
- if (err < 0)
+ if (err < 0) {
+ platform_driver_unregister(&panel_simple_platform_driver);
return err;
+ }
}
return 0;