blob: e1491d6d49805f0a0773bbe133cab177fa26a140 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
|
arch/arm/common/sharpsl_pm.c | 3 +++
include/asm-arm/hardware/sharpsl_pm.h | 1 +
2 files changed, 4 insertions(+)
Index: git/include/asm-arm/hardware/sharpsl_pm.h
===================================================================
--- git.orig/include/asm-arm/hardware/sharpsl_pm.h 2006-10-31 16:09:33.000000000 +0000
+++ git/include/asm-arm/hardware/sharpsl_pm.h 2006-11-07 22:08:41.000000000 +0000
@@ -26,6 +26,7 @@ struct sharpsl_charger_machinfo {
void (*presuspend)(void);
void (*postsuspend)(void);
void (*earlyresume)(void);
+ void (*postresume)(void);
unsigned long (*read_devdata)(int);
#define SHARPSL_BATT_VOLT 1
#define SHARPSL_BATT_TEMP 2
Index: git/arch/arm/common/sharpsl_pm.c
===================================================================
--- git.orig/arch/arm/common/sharpsl_pm.c 2006-11-07 22:03:48.000000000 +0000
+++ git/arch/arm/common/sharpsl_pm.c 2006-11-07 22:04:20.000000000 +0000
@@ -584,6 +584,9 @@ static int corgi_pxa_pm_enter(suspend_st
if (sharpsl_pm.machinfo->earlyresume)
sharpsl_pm.machinfo->earlyresume();
+ if (sharpsl_pm.machinfo->postresume)
+ sharpsl_pm.machinfo->postresume();
+
dev_dbg(sharpsl_pm.dev, "SharpSL resuming...\n");
return 0;
arch/arm/common/sharpsl_pm.c | 3 +++
include/asm-arm/hardware/sharpsl_pm.h | 1 +
2 files changed, 4 insertions(+)
Index: git/include/asm-arm/hardware/sharpsl_pm.h
===================================================================
--- git.orig/include/asm-arm/hardware/sharpsl_pm.h 2006-10-31 16:09:33.000000000 +0000
+++ git/include/asm-arm/hardware/sharpsl_pm.h 2006-11-07 22:08:41.000000000 +0000
@@ -26,6 +26,7 @@ struct sharpsl_charger_machinfo {
void (*presuspend)(void);
void (*postsuspend)(void);
void (*earlyresume)(void);
+ void (*postresume)(void);
unsigned long (*read_devdata)(int);
#define SHARPSL_BATT_VOLT 1
#define SHARPSL_BATT_TEMP 2
Index: git/arch/arm/common/sharpsl_pm.c
===================================================================
--- git.orig/arch/arm/common/sharpsl_pm.c 2006-11-07 22:03:48.000000000 +0000
+++ git/arch/arm/common/sharpsl_pm.c 2006-11-07 22:04:20.000000000 +0000
@@ -584,6 +584,9 @@ static int corgi_pxa_pm_enter(suspend_st
if (sharpsl_pm.machinfo->earlyresume)
sharpsl_pm.machinfo->earlyresume();
+ if (sharpsl_pm.machinfo->postresume)
+ sharpsl_pm.machinfo->postresume();
+
dev_dbg(sharpsl_pm.dev, "SharpSL resuming...\n");
return 0;
|