Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 107225
b: refs/heads/master
c: 484d6d5
h: refs/heads/master
i:
  107223: 74fbeec
v: v3
  • Loading branch information
Andres Salomon authored and Anton Vorontsov committed May 4, 2008
1 parent 55d101f commit e5c4d06
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: b2bd8a3bcdd18101eb5d85c267c1a1fb8ce9acc7
refs/heads/master: 484d6d50cca3941db6e063113d124333aed0abc0
10 changes: 8 additions & 2 deletions trunk/drivers/power/olpc_battery.c
Original file line number Diff line number Diff line change
Expand Up @@ -389,8 +389,14 @@ static int __init olpc_bat_init(void)

if (!olpc_platform_info.ecver)
return -ENXIO;
if (olpc_platform_info.ecver < 0x43) {
printk(KERN_NOTICE "OLPC EC version 0x%02x too old for battery driver.\n", olpc_platform_info.ecver);

/*
* We've seen a number of EC protocol changes; this driver requires
* the latest EC protocol, supported by 0x44 and above.
*/
if (olpc_platform_info.ecver < 0x44) {
printk(KERN_NOTICE "OLPC EC version 0x%02x too old for "
"battery driver.\n", olpc_platform_info.ecver);
return -ENXIO;
}

Expand Down

0 comments on commit e5c4d06

Please sign in to comment.