drm/bridge: ti-sn65dsi86: Move all the chip-related init to the start
authorDouglas Anderson <dianders@chromium.org>
Fri, 23 Apr 2021 16:58:54 +0000 (09:58 -0700)
committerDouglas Anderson <dianders@chromium.org>
Mon, 3 May 2021 20:21:08 +0000 (13:21 -0700)
commitbef236a5206c49572899c999d601ac9100c1a6ba
tree2b02a17297bb64d58e6546f1c4d31ce0964c5617
parentf94eb8a328633f2fc6af358d0ad7e9c8af3e26f6
drm/bridge: ti-sn65dsi86: Move all the chip-related init to the start

This is just code motion of the probe routine to move all the things
that are for the "whole chip" (instead of the GPIO parts or the
MIPI-to-eDP parts) together at the start of probe. This is in
preparation for breaking the driver into sub-drivers.

Since we're using devm for all of the "whole chip" stuff this is
actually quite easy now.

Signed-off-by: Douglas Anderson <dianders@chromium.org>
Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20210423095743.v5.8.Ide8ba40feb2e43bc98a11edbb08d696d62dcd83e@changeid
drivers/gpu/drm/bridge/ti-sn65dsi86.c