diff options
author | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2023-11-03 18:35:58 +0100 |
---|---|---|
committer | Helge Deller <deller@gmx.de> | 2023-11-07 14:42:34 +0100 |
commit | fc6699d62f5f4facc3e934efd25892fc36050b70 (patch) | |
tree | dfd357cd8ccdd82cb975e9815047e7004c6d9f17 /drivers/video/fbdev/omap2 | |
parent | 02d487fa30042fb68392e36f04e51fda266637e7 (diff) | |
download | linux-stable-fc6699d62f5f4facc3e934efd25892fc36050b70.tar.gz linux-stable-fc6699d62f5f4facc3e934efd25892fc36050b70.tar.bz2 linux-stable-fc6699d62f5f4facc3e934efd25892fc36050b70.zip |
fbdev: omapfb: Drop unused remove function
OMAP2_VRFB is a bool, so the vrfb driver can never be compiled as a
module. With that __exit_p(vrfb_remove) always evaluates to NULL and
vrfb_remove() is unused.
If the driver was compilable as a module, it would fail to build because
the type of vrfb_remove() isn't compatible with struct
platform_driver::remove(). (The former returns void, the latter int.)
Fixes: aa1e49a3752f ("OMAPDSS: VRFB: add omap_vrfb_supported()")
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Helge Deller <deller@gmx.de>
Diffstat (limited to 'drivers/video/fbdev/omap2')
-rw-r--r-- | drivers/video/fbdev/omap2/omapfb/vrfb.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/drivers/video/fbdev/omap2/omapfb/vrfb.c b/drivers/video/fbdev/omap2/omapfb/vrfb.c index ee0dd4c6a646..568e6e1eca62 100644 --- a/drivers/video/fbdev/omap2/omapfb/vrfb.c +++ b/drivers/video/fbdev/omap2/omapfb/vrfb.c @@ -368,17 +368,10 @@ static int __init vrfb_probe(struct platform_device *pdev) return 0; } -static void __exit vrfb_remove(struct platform_device *pdev) -{ - vrfb_loaded = false; -} - static struct platform_driver vrfb_driver = { .driver.name = "omapvrfb", - .remove = __exit_p(vrfb_remove), }; - -module_platform_driver_probe(vrfb_driver, vrfb_probe); +builtin_platform_driver_probe(vrfb_driver, vrfb_probe); MODULE_AUTHOR("Tomi Valkeinen <tomi.valkeinen@ti.com>"); MODULE_DESCRIPTION("OMAP VRFB"); |