Commit fc6699d6 authored by Uwe Kleine-König's avatar Uwe Kleine-König Committed by Helge Deller

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: aa1e49a3 ("OMAPDSS: VRFB: add omap_vrfb_supported()")
Signed-off-by: default avatarUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: default avatarHelge Deller <deller@gmx.de>
parent 02d487fa
...@@ -368,17 +368,10 @@ static int __init vrfb_probe(struct platform_device *pdev) ...@@ -368,17 +368,10 @@ static int __init vrfb_probe(struct platform_device *pdev)
return 0; return 0;
} }
static void __exit vrfb_remove(struct platform_device *pdev)
{
vrfb_loaded = false;
}
static struct platform_driver vrfb_driver = { static struct platform_driver vrfb_driver = {
.driver.name = "omapvrfb", .driver.name = "omapvrfb",
.remove = __exit_p(vrfb_remove),
}; };
builtin_platform_driver_probe(vrfb_driver, vrfb_probe);
module_platform_driver_probe(vrfb_driver, vrfb_probe);
MODULE_AUTHOR("Tomi Valkeinen <tomi.valkeinen@ti.com>"); MODULE_AUTHOR("Tomi Valkeinen <tomi.valkeinen@ti.com>");
MODULE_DESCRIPTION("OMAP VRFB"); MODULE_DESCRIPTION("OMAP VRFB");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment