From 94d48d038502097ebfa2e33e4a75b9e0e675231d Mon Sep 17 00:00:00 2001 From: Stuart Bennett Date: Wed, 6 May 2009 23:56:51 +0100 Subject: nouveau: backlight compat fix Avoid failure to build on old kernels with CONFIG_BACKLIGHT_CLASS_DEVICE set --- linux-core/nouveau_backlight.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/linux-core/nouveau_backlight.c b/linux-core/nouveau_backlight.c index 51c747a3..1b36f3cf 100644 --- a/linux-core/nouveau_backlight.c +++ b/linux-core/nouveau_backlight.c @@ -37,7 +37,7 @@ #include "nouveau_drm.h" #include "nouveau_reg.h" -#ifdef CONFIG_BACKLIGHT_CLASS_DEVICE +#if defined(CONFIG_BACKLIGHT_CLASS_DEVICE) && (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,23)) static int nv40_get_intensity(struct backlight_device *bd) { -- cgit v1.2.3