diff options
Diffstat (limited to 'drivers/acpi/battery.c')
-rw-r--r-- | drivers/acpi/battery.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/drivers/acpi/battery.c b/drivers/acpi/battery.c index e48fc98e71c4..9530f4478ae2 100644 --- a/drivers/acpi/battery.c +++ b/drivers/acpi/battery.c | |||
@@ -1106,8 +1106,15 @@ static int battery_notify(struct notifier_block *nb, | |||
1106 | return 0; | 1106 | return 0; |
1107 | } | 1107 | } |
1108 | 1108 | ||
1109 | static int battery_bix_broken_package_quirk(const struct dmi_system_id *d) | ||
1110 | { | ||
1111 | battery_bix_broken_package = 1; | ||
1112 | return 0; | ||
1113 | } | ||
1114 | |||
1109 | static struct dmi_system_id bat_dmi_table[] = { | 1115 | static struct dmi_system_id bat_dmi_table[] = { |
1110 | { | 1116 | { |
1117 | .callback = battery_bix_broken_package_quirk, | ||
1111 | .ident = "NEC LZ750/LS", | 1118 | .ident = "NEC LZ750/LS", |
1112 | .matches = { | 1119 | .matches = { |
1113 | DMI_MATCH(DMI_SYS_VENDOR, "NEC"), | 1120 | DMI_MATCH(DMI_SYS_VENDOR, "NEC"), |
@@ -1227,8 +1234,7 @@ static void __init acpi_battery_init_async(void *unused, async_cookie_t cookie) | |||
1227 | if (acpi_disabled) | 1234 | if (acpi_disabled) |
1228 | return; | 1235 | return; |
1229 | 1236 | ||
1230 | if (dmi_check_system(bat_dmi_table)) | 1237 | dmi_check_system(bat_dmi_table); |
1231 | battery_bix_broken_package = 1; | ||
1232 | 1238 | ||
1233 | #ifdef CONFIG_ACPI_PROCFS_POWER | 1239 | #ifdef CONFIG_ACPI_PROCFS_POWER |
1234 | acpi_battery_dir = acpi_lock_battery_dir(); | 1240 | acpi_battery_dir = acpi_lock_battery_dir(); |