There is a problem when doing "cat
/sys/class/power_supply/pmic-adap/uevent".
This is caused by a typo; fix it.

<0>[   72.773481] last sysfs file:
/sys/devices/platform/pmic_battery.17/power_supply/pmic-adap/uevent
<4>[   72.773574] Pid: 893, comm: cat Tainted: G        WC  2.6.37.6 #1
Acer MM 10/MM
<4>[   72.773609] EIP: 0060:[<c1422bc1>] EFLAGS: 00010246 CPU: 1
<4>[   72.773628] EIP is at power_supply_uevent+0xf1/0x210
<4>[   72.773643] EAX: 00000000 EBX: f6f69c4c ECX: d89b6000 EDX:
00000000
<4>[   72.773659] ESI: f6f76000 EDI: 00000000 EBP: eba31eb4 ESP:
eba31e7c
<4>[   72.773675]  DS: 007b ES: 007b FS: 00d8 GS: 0033 SS: 0068
<0>[   72.773691] Process cat (pid: 893, ti=eba30000 task=d89caba0
task.ti=eba30000)
<0>[   72.773705] Stack:
<4>[   72.773714]  dfe38000 c188249b c1882874 c1882874 00000007 f6f76000
f6f69c4c d89b6000
<4>[   72.773763]  00000000 dfe38000 00000000 f6f76000 dfe38000 00000000
eba31ee0 c12dcaf7
<4>[   72.773809]  dfe38000 000080d0 00000202 eba31ee0 c10f3f8f f78008c0
c16ef070 f784d640
<0>[   72.773857] Call Trace:
<4>[   72.773883]  [<c12dcaf7>] ? dev_uevent+0x97/0x200
<4>[   72.773905]  [<c10f3f8f>] ? kmem_cache_alloc_notrace+0xaf/0xc0
<4>[   72.773926]  [<c12db327>] ? show_uevent+0xa7/0x1d0
<4>[   72.773947]  [<c12db280>] ? show_uevent+0x0/0x1d0
<4>[   72.773966]  [<c12db0a4>] ? dev_attr_show+0x24/0x50
<4>[   72.773988]  [<c1153f81>] ? sysfs_read_file+0xc1/0x170
<4>[   72.774010]  [<c10fc605>] ? rw_verify_area+0x65/0x110
<4>[   72.774040]  [<c10fcad7>] ? vfs_read+0x97/0x160
<4>[   72.774044]  [<c1153ec0>] ? sysfs_read_file+0x0/0x170
<4>[   72.774044]  [<c10fcbdd>] ? sys_read+0x3d/0x70
<4>[   72.774044]  [<c1002d50>] ? sysenter_do_call+0x12/0x36

Signed-off-by: Major Lee <major_...@wistron.com>
---
--- linux-2.6.37.bak/drivers/power/intel_pmic_battery.c 2011-07-20
09:15:00.007554015 +0800
+++ linux-2.6.37/drivers/power/intel_pmic_battery.c     2011-07-20
14:05:35.015967000 +0800
@@ -836,7 +836,7 @@ static irqreturn_t pmic_adap_interrupt_h
 static void pmic_adaptor_handle_intrpt(struct work_struct *work)
 {
        struct pmic_power_info *pbi = container_of(work,
-                               struct pmic_power_info, handler);
+                               struct pmic_power_info, adap_handler);
        int val = gpio_get_value(PMIC_GPIO_0);
 
        if (val) {

Attachment: linux-2.6.37-pmic-battery-fix-a-typo.patch
Description: linux-2.6.37-pmic-battery-fix-a-typo.patch

_______________________________________________
MeeGo-kernel mailing list
MeeGo-kernel@lists.meego.com
http://lists.meego.com/listinfo/meego-kernel

Reply via email to