summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Garrett <mjg59@srcf.ucam.org>2009-02-18 13:21:26 +0000
committerPekka Paalanen <pq@iki.fi>2009-02-18 22:31:47 +0200
commit25c60cfeca16f2bce38dbf32a57f1edc04c23a19 (patch)
tree91d648336ff75b18db7e7d110cd72f27572d9dc4
parent96ce587e8b915afeac38e5f547ba95803c1780f2 (diff)
nv40, nv50: fix backlight build for <2.6.29 kernels
Signed-off-by: Matthew Garrett <mjg59@srcf.ucam.org> Signed-off-by: Pekka Paalanen <pq@iki.fi>
-rw-r--r--linux-core/nouveau_backlight.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/linux-core/nouveau_backlight.c b/linux-core/nouveau_backlight.c
index dc75c443..32bb3e54 100644
--- a/linux-core/nouveau_backlight.c
+++ b/linux-core/nouveau_backlight.c
@@ -60,7 +60,9 @@ static int nv40_set_intensity(struct backlight_device *bd)
}
static struct backlight_ops nv40_bl_ops = {
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,29))
.options = BL_CORE_SUSPENDRESUME,
+#endif
.get_brightness = nv40_get_intensity,
.update_status = nv40_set_intensity,
};
@@ -85,7 +87,9 @@ static int nv50_set_intensity(struct backlight_device *bd)
}
static struct backlight_ops nv50_bl_ops = {
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,29))
.options = BL_CORE_SUSPENDRESUME,
+#endif
.get_brightness = nv50_get_intensity,
.update_status = nv50_set_intensity,
};