diff options
-rw-r--r-- | drivers/platform/x86/thinkpad_acpi.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/platform/x86/thinkpad_acpi.c b/drivers/platform/x86/thinkpad_acpi.c index f78d27503925..b789ee8bc14e 100644 --- a/drivers/platform/x86/thinkpad_acpi.c +++ b/drivers/platform/x86/thinkpad_acpi.c | |||
@@ -6010,8 +6010,10 @@ static int __init brightness_init(struct ibm_init_struct *iibm) | |||
6010 | TPACPI_BACKLIGHT_DEV_NAME, NULL, NULL, | 6010 | TPACPI_BACKLIGHT_DEV_NAME, NULL, NULL, |
6011 | &ibm_backlight_data); | 6011 | &ibm_backlight_data); |
6012 | if (IS_ERR(ibm_backlight_device)) { | 6012 | if (IS_ERR(ibm_backlight_device)) { |
6013 | int rc = PTR_ERR(ibm_backlight_device); | ||
6014 | ibm_backlight_device = NULL; | ||
6013 | printk(TPACPI_ERR "Could not register backlight device\n"); | 6015 | printk(TPACPI_ERR "Could not register backlight device\n"); |
6014 | return PTR_ERR(ibm_backlight_device); | 6016 | return rc; |
6015 | } | 6017 | } |
6016 | vdbg_printk(TPACPI_DBG_INIT | TPACPI_DBG_BRGHT, | 6018 | vdbg_printk(TPACPI_DBG_INIT | TPACPI_DBG_BRGHT, |
6017 | "brightness is supported\n"); | 6019 | "brightness is supported\n"); |