mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
[PATCH] Toshiba driver cleanup
Toshiba legacy driver cleanup: - use module_init/module_exit for initialization instead of using #ifdef MODULE and calling tosh_init manually from drivers/char/misc.c - do not explicitly initialize static variables - some whitespace and formatting cleanups Signed-off-by: Dmitry Torokhov <dtor@mail.ru> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
parent
5cdb7b48d0
commit
3f5f7e2eeb
2 changed files with 24 additions and 40 deletions
|
@ -66,7 +66,6 @@ static unsigned char misc_minors[DYNAMIC_MINORS / 8];
|
|||
extern int rtc_DP8570A_init(void);
|
||||
extern int rtc_MK48T08_init(void);
|
||||
extern int pmu_device_init(void);
|
||||
extern int tosh_init(void);
|
||||
extern int i8k_init(void);
|
||||
|
||||
#ifdef CONFIG_PROC_FS
|
||||
|
@ -314,9 +313,6 @@ static int __init misc_init(void)
|
|||
#ifdef CONFIG_PMAC_PBOOK
|
||||
pmu_device_init();
|
||||
#endif
|
||||
#ifdef CONFIG_TOSHIBA
|
||||
tosh_init();
|
||||
#endif
|
||||
#ifdef CONFIG_I8K
|
||||
i8k_init();
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue