]> git.baikalelectronics.ru Git - kernel.git/commit
drm/sun4i: tv: Include drm_atomic.h
authorMaxime Ripard <maxime@cerno.tech>
Fri, 9 Sep 2022 09:31:16 +0000 (11:31 +0200)
committerMaxime Ripard <maxime@cerno.tech>
Fri, 9 Sep 2022 09:41:46 +0000 (11:41 +0200)
commitbdd271e8f390b95b4598df80017dd55ecd09b8b2
tree74f66ffa02c3f9c6876bdbb5e1f4efebf3a8d91e
parentb5a932826fc01cc4a7fd299d6dff3cec7a1af158
drm/sun4i: tv: Include drm_atomic.h

Commit dd3d0ad9fdb7 ("drm/sun4i: tv: Merge mode_set into atomic_enable")
has introduced a call to drm_atomic_get_new_crtc_state(), but didn't
include drm_atomic.h.

On CONFIG_OF systems, this is fine because drm_atomic.h is included by
drm_of.h through drm_bridge.h. However, whenever CONFIG_OF isn't set, we
end up with a compilation error.

Fixes: dd3d0ad9fdb7 ("drm/sun4i: tv: Merge mode_set into atomic_enable")
Reported-by: kernel test robot <lkp@intel.com>
Reported-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
Link: https://patchwork.freedesktop.org/patch/msgid/20220909093116.4141982-1-maxime@cerno.tech
drivers/gpu/drm/sun4i/sun4i_tv.c