drm/bridge: sn65dsi83: Switch to devm MIPI-DSI helpers
authorMaxime Ripard <maxime@cerno.tech>
Mon, 25 Oct 2021 15:15:29 +0000 (17:15 +0200)
committerMaxime Ripard <maxime@cerno.tech>
Wed, 27 Oct 2021 20:07:57 +0000 (22:07 +0200)
commit6cae235e9cd112da0a33dd261e2a01c93c825799
treee01b5119b8fe34f38b330142d8f7bbb17cd0058a
parentc05f1a4e2c4b8a217b448828c4e59fb47454dc75
drm/bridge: sn65dsi83: Switch to devm MIPI-DSI helpers

Let's switch to the new devm MIPI-DSI function to register and attach
our secondary device. This also avoids leaking the device when we detach
the bridge but don't remove its driver.

Acked-by: Sam Ravnborg <sam@ravnborg.org>
Tested-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
Link: https://patchwork.freedesktop.org/patch/msgid/20211025151536.1048186-15-maxime@cerno.tech
drivers/gpu/drm/bridge/ti-sn65dsi83.c