nouveau: backlight compat fix
Avoid failure to build on old kernels with CONFIG_BACKLIGHT_CLASS_DEVICE setmain
parent
e2b5fde7f6
commit
94d48d0385
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue