Message ID | 20221115025306.2602-1-shangxiaojing@huawei.com |
---|---|
State | New |
Headers | show |
Series | [-next] fbdev: via: Fix section mismatch warning in via_core_init() | expand |
diff --git a/drivers/video/fbdev/via/via-core.c b/drivers/video/fbdev/via/via-core.c index b2e3b5df38cd..b8cd04defc5e 100644 --- a/drivers/video/fbdev/via/via-core.c +++ b/drivers/video/fbdev/via/via-core.c @@ -734,7 +734,6 @@ static int __init via_core_init(void) if (ret) { viafb_gpio_exit(); viafb_i2c_exit(); - viafb_exit(); return ret; }
Due to viafb_exit() with "__exit" tag, it should not be called by the __init function via_core_init(). WARNING: modpost: drivers/video/fbdev/via/viafb.o: section mismatch in reference: init_module (section: .init.text) -> viafb_exit (section: .exit.text) Fixes: ab885d8c7e15 ("fbdev: via: Fix error in via_core_init()") Signed-off-by: Shang XiaoJing <shangxiaojing@huawei.com> --- drivers/video/fbdev/via/via-core.c | 1 - 1 file changed, 1 deletion(-)