summarylogtreecommitdiffstats
path: root/asusbat.patch
blob: cf85eeb6e0018a841300389a071477b64bf197f5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
 drivers/platform/x86/asus-wmi.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/platform/x86/asus-wmi.c b/drivers/platform/x86/asus-wmi.c
index 612ef5526226..12435e747a5d 100644
--- a/drivers/platform/x86/asus-wmi.c
+++ b/drivers/platform/x86/asus-wmi.c
@@ -427,7 +427,7 @@ static int asus_wmi_battery_add(struct power_supply *battery)
 	/* The WMI method does not provide a way to specific a battery, so we
 	 * just assume it is the first battery.
 	 */
-	if (strcmp(battery->desc->name, "BAT0") != 0)
+	if ( (strcmp(battery->desc->name, "BAT0") != 0) && (strcmp(battery->desc->name, "BATT") != 0) )
 		return -ENODEV;
 
 	if (device_create_file(&battery->dev,