]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - drivers/platform/x86/huawei-wmi.c
platform/x86: huawei-wmi: No need to check for battery name
[linux.git] / drivers / platform / x86 / huawei-wmi.c
index 26041d44286a91ebdda2d88157e1190c188debf2..7373a65a61d3cca8c9f1531c936a68259dff5ece 100644 (file)
@@ -471,10 +471,6 @@ static DEVICE_ATTR_RW(charge_control_thresholds);
 
 static int huawei_wmi_battery_add(struct power_supply *battery)
 {
-       /* Huawei laptops come with one battery only */
-       if (strcmp(battery->desc->name, "BAT") != 1)
-               return -ENODEV;
-
        device_create_file(&battery->dev, &dev_attr_charge_control_start_threshold);
        device_create_file(&battery->dev, &dev_attr_charge_control_end_threshold);