Commit d88607df authored by Randy Dunlap's avatar Randy Dunlap Committed by Linus Torvalds

[PATCH] janitor: more init/exit cleanups

From: Domen Puncer <domen@coderock.org>
	and Randy Dunlap

Release (in fact all) functions shouldn't be __init or __exit, if they
are called from __init and __exit functions.
parent 4eefa9e5
......@@ -227,7 +227,7 @@ int __init probe_ali14xx (void)
return 0;
}
void __init ali14xx_release (void)
static void ali14xx_release (void)
{
if (ide_hwifs[0].chipset != ide_ali14xx &&
ide_hwifs[1].chipset != ide_ali14xx)
......
......@@ -134,7 +134,7 @@ void __init probe_dtc2278 (void)
probe_hwif_init(&ide_hwifs[1]);
}
void __init dtc2278_release (void)
static void dtc2278_release (void)
{
if (ide_hwifs[0].chipset != ide_dtc2278 &&
ide_hwifs[1].chipset != ide_dtc2278)
......
......@@ -297,11 +297,7 @@ int __init detect_pdc4030(ide_hwif_t *hwif)
}
#ifndef MODULE
void __init ide_probe_for_pdc4030(void)
#else
int ide_probe_for_pdc4030(void)
#endif
static int __init ide_probe_for_pdc4030(void)
{
unsigned int index;
ide_hwif_t *hwif;
......
......@@ -160,7 +160,7 @@ int __init probe_umc8672 (void)
return 0;
}
void __init umc8672_release (void)
static void umc8672_release (void)
{
unsigned long flags;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment