diff options
author | Stuart Bennett <stuart@freedesktop.org> | 2009-05-06 23:56:51 +0100 |
---|---|---|
committer | Stuart Bennett <stuart@freedesktop.org> | 2009-05-07 01:00:41 +0100 |
commit | 94d48d038502097ebfa2e33e4a75b9e0e675231d (patch) | |
tree | 84f89c90613c41f67e5058712bcb60843abf31ab /linux-core | |
parent | e2b5fde7f6ff412cadd9cad35ad051a028cf7fae (diff) |
nouveau: backlight compat fix
Avoid failure to build on old kernels with CONFIG_BACKLIGHT_CLASS_DEVICE set
Diffstat (limited to 'linux-core')
-rw-r--r-- | linux-core/nouveau_backlight.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) { |