]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
toshiba_acpi: Fix mis-merge
authorMatthew Garrett <mjg@redhat.com>
Fri, 1 Jun 2012 15:02:36 +0000 (11:02 -0400)
committerMatthew Garrett <mjg@redhat.com>
Fri, 1 Jun 2012 15:02:36 +0000 (11:02 -0400)
I managed to screw up the various backlight changes and ended up memsetting
the props structure after it had already been populated. This should fix it.

Signed-off-by: Matthew Garrett <mjg@redhat.com>
drivers/platform/x86/toshiba_acpi.c

index f88b9d22f39ec26cc174f4936031b4f61fa31702..dab10f6edcd43186e2af9a397d909a0ce607694f 100644 (file)
@@ -1095,9 +1095,9 @@ static int __devinit toshiba_acpi_setup_backlight(struct toshiba_acpi_dev *dev)
        ret = get_tr_backlight_status(dev, &enabled);
        dev->tr_backlight_supported = !ret;
 
+       memset(&props, 0, sizeof(props));
        props.type = BACKLIGHT_PLATFORM;
        props.max_brightness = HCI_LCD_BRIGHTNESS_LEVELS - 1;
-       memset(&props, 0, sizeof(props));
 
        /* adding an extra level and having 0 change to transflective mode */
        if (dev->tr_backlight_supported)