nouveau: backlight compat fix

Avoid failure to build on old kernels with CONFIG_BACKLIGHT_CLASS_DEVICE set
This commit is contained in:
Stuart Bennett 2009-05-06 23:56:51 +01:00
parent e2b5fde7f6
commit 94d48d0385

View file

@ -37,7 +37,7 @@
#include "nouveau_drm.h" #include "nouveau_drm.h"
#include "nouveau_reg.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) static int nv40_get_intensity(struct backlight_device *bd)
{ {