Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

drm/bridge: tpd12s015: Drop buggy __exit annotation for remove function

With tpd12s015_remove() marked with __exit this function is discarded
when the driver is compiled as a built-in. The result is that when the
driver unbinds there is no cleanup done which results in resource
leakage or worse.

Fixes: cff5e6f7e83f ("drm/bridge: Add driver for the TI TPD12S015 HDMI level shifter")
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Link: https://patchwork.freedesktop.org/patch/msgid/20231102165640.3307820-19-u.kleine-koenig@pengutronix.de

authored by

Uwe Kleine-König and committed by
Thomas Zimmermann
ce3e112e 5f35a624

+2 -2
+2 -2
drivers/gpu/drm/bridge/ti-tpd12s015.c
··· 179 179 return 0; 180 180 } 181 181 182 - static int __exit tpd12s015_remove(struct platform_device *pdev) 182 + static int tpd12s015_remove(struct platform_device *pdev) 183 183 { 184 184 struct tpd12s015_device *tpd = platform_get_drvdata(pdev); 185 185 ··· 197 197 198 198 static struct platform_driver tpd12s015_driver = { 199 199 .probe = tpd12s015_probe, 200 - .remove = __exit_p(tpd12s015_remove), 200 + .remove = tpd12s015_remove, 201 201 .driver = { 202 202 .name = "tpd12s015", 203 203 .of_match_table = tpd12s015_of_match,