summaryrefslogtreecommitdiffstats
path: root/drivers/power/olpc_battery.c
diff options
context:
space:
mode:
authorAnton Vorontsov <cbouatmailru@gmail.com>2011-11-24 19:52:48 +0100
committerAnton Vorontsov <cbouatmailru@gmail.com>2011-11-24 20:07:00 +0100
commit7ab2f0207dd493e9ac8bae78324cf5592fa92650 (patch)
tree1ff77ca24279088a18c10d0e043327dcd1be7e3c /drivers/power/olpc_battery.c
parentolpc_battery: Fix section mismatch noise (diff)
downloadlinux-7ab2f0207dd493e9ac8bae78324cf5592fa92650.tar.xz
linux-7ab2f0207dd493e9ac8bae78324cf5592fa92650.zip
olpc_battery: Remove unneeded 'olpc_battery_trigger_uevent'
It is no longer used, so we can safely remove it. Signed-off-by: Anton Vorontsov <cbouatmailru@gmail.com>
Diffstat (limited to 'drivers/power/olpc_battery.c')
-rw-r--r--drivers/power/olpc_battery.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/drivers/power/olpc_battery.c b/drivers/power/olpc_battery.c
index dc60f61a3b9e..21e7c06724bf 100644
--- a/drivers/power/olpc_battery.c
+++ b/drivers/power/olpc_battery.c
@@ -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)
{