diff options
author | Adrian Bunk <bunk@stusta.de> | 2006-03-24 06:15:57 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-03-24 10:33:21 -0500 |
commit | cdb0452789d365695b5b173542af9c7e3d24f185 (patch) | |
tree | f8594a754736aecfb52d835a2e12f46a923e6ed6 /include/linux | |
parent | 008accbbae6b2f18c2039d563f28d46ff4388d36 (diff) |
[PATCH] kill include/linux/platform.h, default_idle() cleanup
include/linux/platform.h contained nothing that was actually used except
the default_idle() prototype, and is therefore removed by this patch.
This patch does the following with the platform specific default_idle()
functions on different architectures:
- remove the unused function:
- parisc
- sparc64
- make the needlessly global function static:
- arm
- h8300
- m68k
- m68knommu
- s390
- v850
- x86_64
- add a prototype in asm/system.h:
- cris
- i386
- ia64
Signed-off-by: Adrian Bunk <bunk@stusta.de>
Acked-by: Patrick Mochel <mochel@digitalimplant.org>
Acked-by: Kyle McMartin <kyle@parisc-linux.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/platform.h | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/include/linux/platform.h b/include/linux/platform.h deleted file mode 100644 index 3c33084a6ec2..000000000000 --- a/include/linux/platform.h +++ /dev/null | |||
@@ -1,43 +0,0 @@ | |||
1 | /* | ||
2 | * include/linux/platform.h - platform driver definitions | ||
3 | * | ||
4 | * Because of the prolific consumerism of the average American, | ||
5 | * and the dominant marketing budgets of PC OEMs, we have been | ||
6 | * blessed with frequent updates of the PC architecture. | ||
7 | * | ||
8 | * While most of these calls are singular per architecture, they | ||
9 | * require an extra layer of abstraction on the x86 so the right | ||
10 | * subsystem gets the right call. | ||
11 | * | ||
12 | * Basically, this consolidates the power off and reboot callbacks | ||
13 | * into one structure, as well as adding power management hooks. | ||
14 | * | ||
15 | * When adding a platform driver, please make sure all callbacks are | ||
16 | * filled. There are defaults defined below that do nothing; use those | ||
17 | * if you do not support that callback. | ||
18 | */ | ||
19 | |||
20 | #ifndef _PLATFORM_H_ | ||
21 | #define _PLATFORM_H_ | ||
22 | #ifdef __KERNEL__ | ||
23 | |||
24 | #include <linux/types.h> | ||
25 | |||
26 | struct platform_t { | ||
27 | char * name; | ||
28 | u32 suspend_states; | ||
29 | void (*reboot)(char * cmd); | ||
30 | void (*halt)(void); | ||
31 | void (*power_off)(void); | ||
32 | int (*suspend)(int state, int flags); | ||
33 | void (*idle)(void); | ||
34 | }; | ||
35 | |||
36 | extern struct platform_t * platform; | ||
37 | extern void default_reboot(char * cmd); | ||
38 | extern void default_halt(void); | ||
39 | extern int default_suspend(int state, int flags); | ||
40 | extern void default_idle(void); | ||
41 | |||
42 | #endif /* __KERNEL__ */ | ||
43 | #endif /* _PLATFORM_H */ | ||