aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/platform
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/platform')
-rw-r--r--drivers/platform/x86/ideapad-laptop.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/platform/x86/ideapad-laptop.c b/drivers/platform/x86/ideapad-laptop.c
index 0c595410e788..0d94eec00f4d 100644
--- a/drivers/platform/x86/ideapad-laptop.c
+++ b/drivers/platform/x86/ideapad-laptop.c
@@ -493,6 +493,8 @@ static void ideapad_backlight_notify_power(struct ideapad_private *priv)
493 unsigned long power; 493 unsigned long power;
494 struct backlight_device *blightdev = priv->blightdev; 494 struct backlight_device *blightdev = priv->blightdev;
495 495
496 if (!blightdev)
497 return;
496 if (read_ec_data(ideapad_handle, 0x18, &power)) 498 if (read_ec_data(ideapad_handle, 0x18, &power))
497 return; 499 return;
498 blightdev->props.power = power ? FB_BLANK_UNBLANK : FB_BLANK_POWERDOWN; 500 blightdev->props.power = power ? FB_BLANK_UNBLANK : FB_BLANK_POWERDOWN;