summaryrefslogtreecommitdiff
path: root/drm/nouveau/dispnv04
diff options
context:
space:
mode:
authorAlexandre Courbot <acourbot@nvidia.com>2015-12-18 15:16:09 +0900
committerAlexandre Courbot <acourbot@nvidia.com>2016-02-26 16:48:41 +0900
commitc0f246b400c521988e89a712d72f58bd5a38a5fa (patch)
treea19c00a526eeef6e6cbf9c64897954b7dd1b4e3a /drm/nouveau/dispnv04
parent4e404e403fdb54cd27002b84194609f446355bb8 (diff)
downloadnouveau-c0f246b400c521988e89a712d72f58bd5a38a5fa.tar.gz
allow compilation against 3.18
Diffstat (limited to 'drm/nouveau/dispnv04')
-rw-r--r--drm/nouveau/dispnv04/tvnv17.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drm/nouveau/dispnv04/tvnv17.c b/drm/nouveau/dispnv04/tvnv17.c
index 163317d26..4be69bcfa 100644
--- a/drm/nouveau/dispnv04/tvnv17.c
+++ b/drm/nouveau/dispnv04/tvnv17.c
@@ -24,6 +24,8 @@
*
*/
+#include <linux/version.h>
+
#include <drm/drmP.h>
#include <drm/drm_crtc_helper.h>
#include "nouveau_drm.h"
@@ -656,7 +658,9 @@ static int nv17_tv_create_resources(struct drm_encoder *encoder,
nouveau_tv_norm);
}
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,19,0)
drm_mode_create_tv_properties(dev, num_tv_norms, nv17_tv_norm_names);
+#endif
drm_object_attach_property(&connector->base,
conf->tv_select_subconnector_property,