]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/platform/x86/eeepc-laptop.c
Merge branches 'release', 'asus', 'bugzilla-12450', 'cpuidle', 'debug', 'ec', 'misc...
[linux-2.6-omap-h63xx.git] / drivers / platform / x86 / eeepc-laptop.c
index 4348d9909bb2d93e4c2b1f3f4ea91c59ec3a5168..786ed8661cb08bb51e5f373904c5cc00fbf28159 100644 (file)
@@ -515,7 +515,8 @@ static int eeepc_hotk_check(void)
 static void notify_brn(void)
 {
        struct backlight_device *bd = eeepc_backlight_device;
-       bd->props.brightness = read_brightness(bd);
+       if (bd)
+               bd->props.brightness = read_brightness(bd);
 }
 
 static void eeepc_rfkill_notify(acpi_handle handle, u32 event, void *data)