compat-drivers: do not include videomode headers when this feature is deactivated
authorHauke Mehrtens <hauke@hauke-m.de>
Wed, 13 Feb 2013 18:21:12 +0000 (19:21 +0100)
committerHauke Mehrtens <hauke@hauke-m.de>
Wed, 13 Feb 2013 19:58:17 +0000 (20:58 +0100)
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
patches/collateral-evolutions/drm/11-videomode-includes.patch [new file with mode: 0644]

diff --git a/patches/collateral-evolutions/drm/11-videomode-includes.patch b/patches/collateral-evolutions/drm/11-videomode-includes.patch
new file mode 100644 (file)
index 0000000..1858cc3
--- /dev/null
@@ -0,0 +1,15 @@
+--- a/drivers/gpu/drm/drm_modes.c
++++ b/drivers/gpu/drm/drm_modes.c
+@@ -35,8 +35,12 @@
+ #include <linux/export.h>
+ #include <drm/drmP.h>
+ #include <drm/drm_crtc.h>
++#if IS_ENABLED(CONFIG_OF_VIDEOMODE)
+ #include <video/of_videomode.h>
++#endif
++#if IS_ENABLED(CONFIG_VIDEOMODE)
+ #include <video/videomode.h>
++#endif
+ /**
+  * drm_mode_debug_printmodeline - debug print a mode