]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
toshiba_acpi: Initialize brightness in backlight device
authorSeth Forshee <seth.forshee@canonical.com>
Tue, 20 Sep 2011 21:55:54 +0000 (16:55 -0500)
committerMatthew Garrett <mjg@redhat.com>
Mon, 24 Oct 2011 14:52:37 +0000 (16:52 +0200)
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
Signed-off-by: Matthew Garrett <mjg@redhat.com>
drivers/platform/x86/toshiba_acpi.c

index c51a64c49559d59816f6376b224fd830262641e5..13ef8c37471d0a6575fed59d6cf92dece74c34ba 100644 (file)
@@ -979,6 +979,7 @@ static int __devinit toshiba_acpi_add(struct acpi_device *acpi_dev)
                dev->backlight_dev = NULL;
                goto error;
        }
+       dev->backlight_dev->props.brightness = get_lcd(dev->backlight_dev);
 
        /* Register rfkill switch for Bluetooth */
        if (hci_get_bt_present(dev, &bt_present) == HCI_SUCCESS && bt_present) {