From: Helge Deller <deller@gmx.de>
To: "Uwe Kleine-König" <u.kleine-koenig@pengutronix.de>
Cc: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com>,
linux-omap@vger.kernel.org, linux-fbdev@vger.kernel.org,
dri-devel@lists.freedesktop.org, kernel@pengutronix.de
Subject: Re: [PATCH] fbdev: omapfb: Drop unused remove function
Date: Sun, 5 Nov 2023 19:15:54 +0100 [thread overview]
Message-ID: <0c6dfd41-8ad9-4780-a327-c910d6214355@gmx.de> (raw)
In-Reply-To: <20231103173557.3639484-2-u.kleine-koenig@pengutronix.de>
On 11/3/23 18:35, Uwe Kleine-König wrote:
> 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>
applied.
Thanks!
Helge
> ---
> drivers/video/fbdev/omap2/omapfb/vrfb.c | 9 +--------
> 1 file changed, 1 insertion(+), 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");
>
> base-commit: e27090b1413ff236ca1aec26d6b022149115de2c
prev parent reply other threads:[~2023-11-05 18:16 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-11-03 17:35 [PATCH] fbdev: omapfb: Drop unused remove function Uwe Kleine-König
2023-11-05 18:15 ` Helge Deller [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=0c6dfd41-8ad9-4780-a327-c910d6214355@gmx.de \
--to=deller@gmx.de \
--cc=dri-devel@lists.freedesktop.org \
--cc=kernel@pengutronix.de \
--cc=linux-fbdev@vger.kernel.org \
--cc=linux-omap@vger.kernel.org \
--cc=tomi.valkeinen@ideasonboard.com \
--cc=u.kleine-koenig@pengutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox