Skip to content

Commit

Permalink
olpc_battery: Remove unneeded 'olpc_battery_trigger_uevent'
Browse files Browse the repository at this point in the history
It is no longer used, so we can safely remove it.

Signed-off-by: Anton Vorontsov <cbouatmailru@gmail.com>
  • Loading branch information
Anton Vorontsov committed Nov 24, 2011
1 parent 5519d00 commit 7ab2f02
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions drivers/power/olpc_battery.c
Original file line number Diff line number Diff line change
Expand Up @@ -525,14 +525,6 @@ static struct power_supply olpc_bat = {
.use_for_apm = 1,
};

void olpc_battery_trigger_uevent(unsigned long cause)
{
if (cause & EC_SCI_SRC_ACPWR)
kobject_uevent(&olpc_ac.dev->kobj, KOBJ_CHANGE);
if (cause & (EC_SCI_SRC_BATERR|EC_SCI_SRC_BATSOC|EC_SCI_SRC_BATTERY))
kobject_uevent(&olpc_bat.dev->kobj, KOBJ_CHANGE);
}

static int olpc_battery_suspend(struct platform_device *pdev,
pm_message_t state)
{
Expand Down

0 comments on commit 7ab2f02

Please sign in to comment.