aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/platform
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/platform')
-rw-r--r--drivers/platform/x86/eeepc-laptop.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/platform/x86/eeepc-laptop.c b/drivers/platform/x86/eeepc-laptop.c
index 9d93cb971e59..8fb983f5629e 100644
--- a/drivers/platform/x86/eeepc-laptop.c
+++ b/drivers/platform/x86/eeepc-laptop.c
@@ -510,7 +510,8 @@ static int eeepc_hotk_check(void)
510static void notify_brn(void) 510static void notify_brn(void)
511{ 511{
512 struct backlight_device *bd = eeepc_backlight_device; 512 struct backlight_device *bd = eeepc_backlight_device;
513 bd->props.brightness = read_brightness(bd); 513 if (bd)
514 bd->props.brightness = read_brightness(bd);
514} 515}
515 516
516static void eeepc_hotk_notify(acpi_handle handle, u32 event, void *data) 517static void eeepc_hotk_notify(acpi_handle handle, u32 event, void *data)