Searched refs:olpc_bat (Results 1 – 1 of 1) sorted by relevance
580 static struct power_supply *olpc_bat; variable590 if (device_may_wakeup(&olpc_bat->dev)) in olpc_battery_suspend()633 olpc_bat = power_supply_register(&pdev->dev, &olpc_bat_desc, NULL); in olpc_battery_probe()634 if (IS_ERR(olpc_bat)) { in olpc_battery_probe()635 ret = PTR_ERR(olpc_bat); in olpc_battery_probe()639 ret = device_create_bin_file(&olpc_bat->dev, &olpc_bat_eeprom); in olpc_battery_probe()643 ret = device_create_file(&olpc_bat->dev, &olpc_bat_error); in olpc_battery_probe()649 device_set_wakeup_capable(&olpc_bat->dev, true); in olpc_battery_probe()655 device_remove_bin_file(&olpc_bat->dev, &olpc_bat_eeprom); in olpc_battery_probe()657 power_supply_unregister(olpc_bat); in olpc_battery_probe()[all …]