drm/vc4: hdmi: Move initial register read after pm_runtime_get
authorMaxime Ripard <maxime@cerno.tech>
Mon, 5 Jul 2021 08:48:07 +0000 (10:48 +0200)
committerPhil Elwell <8911409+pelwell@users.noreply.github.com>
Mon, 5 Jul 2021 10:18:05 +0000 (11:18 +0100)
commitc1b183050a01c89f9a02649c7a7eeb761a58b134
tree421d28a5a4d5fc7ae703e5f9a77295a33669ecb2
parent22fcc1911edf166a9019231a9c703642a895c567
drm/vc4: hdmi: Move initial register read after pm_runtime_get

Commit ecdd08fd9bba ("drm/vc4: hdmi: Make sure the device is powered
with CEC") made sure that the device is powered while there is
CEC-related accesses but missed one register read in the variable
declaration.

Move the variable assignment after the pm_runtime_resume_and_get.

Fixes: ecdd08fd9bba ("drm/vc4: hdmi: Make sure the device is powered with CEC")
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
drivers/gpu/drm/vc4/vc4_hdmi.c