linux-fbdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH -next] fbdev: via: Fix section mismatch warning in via_core_init()
@ 2022-11-15  2:53 Shang XiaoJing
  2022-11-15  5:14 ` Helge Deller
  0 siblings, 1 reply; 6+ messages in thread
From: Shang XiaoJing @ 2022-11-15  2:53 UTC (permalink / raw)
  To: FlorianSchandinat, deller, corbet, sfr, linux-fbdev, dri-devel
  Cc: shangxiaojing

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(-)

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;
 	}
 
-- 
2.17.1


^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2022-11-15  9:36 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-11-15  2:53 [PATCH -next] fbdev: via: Fix section mismatch warning in via_core_init() Shang XiaoJing
2022-11-15  5:14 ` Helge Deller
2022-11-15  6:52   ` shangxiaojing
2022-11-15  7:05     ` Helge Deller
2022-11-15  7:09       ` shangxiaojing
2022-11-15  9:36         ` Helge Deller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).