diff options
-rw-r--r-- | drivers/acpi/toshiba_acpi.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/acpi/toshiba_acpi.c b/drivers/acpi/toshiba_acpi.c index a736ef7bdee4..9e8c20c6a0b7 100644 --- a/drivers/acpi/toshiba_acpi.c +++ b/drivers/acpi/toshiba_acpi.c | |||
@@ -591,9 +591,12 @@ static int __init toshiba_acpi_init(void) | |||
591 | NULL, | 591 | NULL, |
592 | &toshiba_backlight_data); | 592 | &toshiba_backlight_data); |
593 | if (IS_ERR(toshiba_backlight_device)) { | 593 | if (IS_ERR(toshiba_backlight_device)) { |
594 | int ret = PTR_ERR(toshiba_backlight_device); | ||
595 | |||
594 | printk(KERN_ERR "Could not register toshiba backlight device\n"); | 596 | printk(KERN_ERR "Could not register toshiba backlight device\n"); |
595 | toshiba_backlight_device = NULL; | 597 | toshiba_backlight_device = NULL; |
596 | toshiba_acpi_exit(); | 598 | toshiba_acpi_exit(); |
599 | return ret; | ||
597 | } | 600 | } |
598 | toshiba_backlight_device->props.max_brightness = HCI_LCD_BRIGHTNESS_LEVELS - 1; | 601 | toshiba_backlight_device->props.max_brightness = HCI_LCD_BRIGHTNESS_LEVELS - 1; |
599 | 602 | ||