drm/sti: Include linux/io.h for devm_ioremap()
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Mon, 8 Apr 2024 17:04:11 +0000 (20:04 +0300)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Tue, 28 May 2024 18:43:34 +0000 (21:43 +0300)
commit9b48124cc1188844fdc08e8ca22db9595847d632
tree9f590988f855265c21b1f17f571573cb592f61c3
parentc7ce956bb6d0f32ab921b6ffba1a6a834df96f21
drm/sti: Include linux/io.h for devm_ioremap()

Include linux/io.h for devm_ioremap().

When built on x86_64 w/ COMPILE_TEST=y:
../drivers/gpu/drm/sti/sti_dvo.c:531:21: error: implicit declaration of function ‘devm_ioremap’ [-Werror=implicit-function-declaration]
  531 |         dvo->regs = devm_ioremap(dev, res->start,
      |                     ^~~~~~~~~~~~
../drivers/gpu/drm/sti/sti_dvo.c:531:19: error: assignment to ‘void *’ from ‘int’ makes pointer from integer without a cast [-Werror=int-conversion]
  531 |         dvo->regs = devm_ioremap(dev, res->start,
      |                   ^

Cc: Alain Volmat <alain.volmat@foss.st.com>
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240408170426.9285-7-ville.syrjala@linux.intel.com
Acked-by: Alain Volmat <alain.volmat@foss.st.com>
drivers/gpu/drm/sti/sti_dvo.c