acpi_add_id(device, ACPI_BAY_HID);
else if (ACPI_SUCCESS(acpi_dock_match(device)))
acpi_add_id(device, ACPI_DOCK_HID);
+ + + else if (!acpi_ibm_smbus_match(device))
+ + + acpi_add_id(device, ACPI_SMBUS_IBM_HID);
+++++ ++++ else if (!acpi_device_hid(device) &&
+++++ ++++ ACPI_IS_ROOT_DEVICE(device->parent)) {
+++++ ++++ acpi_add_id(device, ACPI_BUS_HID); /* \_SB, LNXSYBUS */
+++++ ++++ strcpy(device->pnp.device_name, ACPI_BUS_DEVICE_NAME);
+++++ ++++ strcpy(device->pnp.device_class, ACPI_BUS_CLASS);
+++++ ++++ }
break;
case ACPI_BUS_TYPE_POWER:
kfree(name);
if (IS_ERR(device->backlight))
return;
- device->backlight->props.max_brightness = device->brightness->count-3;
+
++ +++++++ /*
++ +++++++ * Save current brightness level in case we have to restore it
++ +++++++ * before acpi_video_device_lcd_set_level() is called next time.
++ +++++++ */
++ +++++++ device->backlight->props.brightness =
++ +++++++ acpi_video_get_brightness(device->backlight);
+ +++++++
result = sysfs_create_link(&device->backlight->dev.kobj,
&device->dev->dev.kobj, "device");
if (result)