mirror of
https://gitlab.freedesktop.org/mesa/drm.git
synced 2025-12-20 05:50:12 +01:00
nouveau: backlight compat fix
Avoid failure to build on old kernels with CONFIG_BACKLIGHT_CLASS_DEVICE set
This commit is contained in:
parent
e2b5fde7f6
commit
94d48d0385
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue