]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/bridge: tda998x: Move tda998x_create/destroy into probe and remove
authorKory Maincent (TI.com) <kory.maincent@bootlin.com>
Fri, 23 Jan 2026 16:12:40 +0000 (17:12 +0100)
committerLuca Ceresoli <luca.ceresoli@bootlin.com>
Wed, 11 Feb 2026 08:16:16 +0000 (09:16 +0100)
commit22b88deb83af2b94f0441075e5528d16d5dcf5b2
tree381c33711b79dda15e2f020d6f99cbd95fd298f9
parentd700fd0ff100f4c301dafeb6b944c7229d0adda7
drm/bridge: tda998x: Move tda998x_create/destroy into probe and remove

Now that tda998x_create and tda998x_destroy are called only in the probe
function, there is no need for separate functions.
Move the code into the tda998x_probe and tda998x_remove functions.
Rewrite the cleanup path using goto calls in probe and reorder it in the
remove function.

Reviewed-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Signed-off-by: Kory Maincent (TI.com) <kory.maincent@bootlin.com>
Link: https://patch.msgid.link/20260123-feature_tilcdc-v5-22-5a44d2aa3f6f@bootlin.com
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
drivers/gpu/drm/bridge/tda998x_drv.c