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

[PATCH] janitor: add static/exit to some modules

From: Domen Puncer <domen@coderock.org>

(2 statics added by rddunlap)
parent 122a6c72
...@@ -269,7 +269,7 @@ MODULE_AUTHOR("see local file"); ...@@ -269,7 +269,7 @@ MODULE_AUTHOR("see local file");
MODULE_DESCRIPTION("support of ALI 14XX IDE chipsets"); MODULE_DESCRIPTION("support of ALI 14XX IDE chipsets");
MODULE_LICENSE("GPL"); MODULE_LICENSE("GPL");
int __init ali14xx_mod_init(void) static int __init ali14xx_mod_init(void)
{ {
/* auto-detect IDE controller port */ /* auto-detect IDE controller port */
if (findPort()) if (findPort())
...@@ -287,7 +287,7 @@ int __init ali14xx_mod_init(void) ...@@ -287,7 +287,7 @@ int __init ali14xx_mod_init(void)
} }
module_init(ali14xx_mod_init); module_init(ali14xx_mod_init);
void __init ali14xx_mod_exit(void) static void __exit ali14xx_mod_exit(void)
{ {
ali14xx_release(); ali14xx_release();
} }
......
...@@ -173,7 +173,7 @@ MODULE_AUTHOR("See Local File"); ...@@ -173,7 +173,7 @@ MODULE_AUTHOR("See Local File");
MODULE_DESCRIPTION("support of DTC-2278 VLB IDE chipsets"); MODULE_DESCRIPTION("support of DTC-2278 VLB IDE chipsets");
MODULE_LICENSE("GPL"); MODULE_LICENSE("GPL");
int __init dtc2278_mod_init(void) static int __init dtc2278_mod_init(void)
{ {
probe_dtc2278(); probe_dtc2278();
if (ide_hwifs[0].chipset != ide_dtc2278 && if (ide_hwifs[0].chipset != ide_dtc2278 &&
...@@ -185,7 +185,7 @@ int __init dtc2278_mod_init(void) ...@@ -185,7 +185,7 @@ int __init dtc2278_mod_init(void)
} }
module_init(dtc2278_mod_init); module_init(dtc2278_mod_init);
void __init dtc2278_mod_exit(void) static void __exit dtc2278_mod_exit(void)
{ {
dtc2278_release(); dtc2278_release();
} }
......
...@@ -330,7 +330,7 @@ void ht6560b_release (void) ...@@ -330,7 +330,7 @@ void ht6560b_release (void)
release_region(HT_CONFIG_PORT, 1); release_region(HT_CONFIG_PORT, 1);
} }
int __init ht6560b_mod_init(void) static int __init ht6560b_mod_init(void)
{ {
int t; int t;
...@@ -391,7 +391,7 @@ MODULE_DESCRIPTION("HT-6560B EIDE-controller support"); ...@@ -391,7 +391,7 @@ MODULE_DESCRIPTION("HT-6560B EIDE-controller support");
MODULE_LICENSE("GPL"); MODULE_LICENSE("GPL");
#ifdef MODULE #ifdef MODULE
void __init ht6560b_mod_exit(void) static void __exit ht6560b_mod_exit(void)
{ {
ht6560b_release(); ht6560b_release();
} }
......
...@@ -326,7 +326,7 @@ int ide_probe_for_pdc4030(void) ...@@ -326,7 +326,7 @@ int ide_probe_for_pdc4030(void)
#endif #endif
} }
void __init release_pdc4030(ide_hwif_t *hwif, ide_hwif_t *mate) static void __exit release_pdc4030(ide_hwif_t *hwif, ide_hwif_t *mate)
{ {
hwif->chipset = ide_unknown; hwif->chipset = ide_unknown;
hwif->selectproc = NULL; hwif->selectproc = NULL;
...@@ -369,7 +369,7 @@ MODULE_AUTHOR("Peter Denison"); ...@@ -369,7 +369,7 @@ MODULE_AUTHOR("Peter Denison");
MODULE_DESCRIPTION("Support of Promise 4030 VLB series IDE chipsets"); MODULE_DESCRIPTION("Support of Promise 4030 VLB series IDE chipsets");
MODULE_LICENSE("GPL"); MODULE_LICENSE("GPL");
int __init pdc4030_mod_init(void) static int __init pdc4030_mod_init(void)
{ {
if (enable_promise_support == 0) if (enable_promise_support == 0)
enable_promise_support = 1; enable_promise_support = 1;
...@@ -380,7 +380,7 @@ int __init pdc4030_mod_init(void) ...@@ -380,7 +380,7 @@ int __init pdc4030_mod_init(void)
} }
module_init(pdc4030_mod_init); module_init(pdc4030_mod_init);
void __init pdc4030_mod_exit(void) static void __exit pdc4030_mod_exit(void)
{ {
unsigned int index; unsigned int index;
ide_hwif_t *hwif; ide_hwif_t *hwif;
......
...@@ -360,7 +360,7 @@ void __init qd_setup (int unit, int base, int config, unsigned int data0, unsign ...@@ -360,7 +360,7 @@ void __init qd_setup (int unit, int base, int config, unsigned int data0, unsign
* *
* called to unsetup an ata channel : back to default values, unlinks tuning * called to unsetup an ata channel : back to default values, unlinks tuning
*/ */
void __init qd_unsetup (int unit) static void __exit qd_unsetup (int unit)
{ {
ide_hwif_t *hwif = &ide_hwifs[unit]; ide_hwif_t *hwif = &ide_hwifs[unit];
u8 config = hwif->config_data; u8 config = hwif->config_data;
...@@ -495,7 +495,7 @@ MODULE_AUTHOR("Samuel Thibault"); ...@@ -495,7 +495,7 @@ MODULE_AUTHOR("Samuel Thibault");
MODULE_DESCRIPTION("support of qd65xx vlb ide chipset"); MODULE_DESCRIPTION("support of qd65xx vlb ide chipset");
MODULE_LICENSE("GPL"); MODULE_LICENSE("GPL");
int __init qd65xx_mod_init(void) static int __init qd65xx_mod_init(void)
{ {
if (qd_probe(0x30)) qd_probe(0xb0); if (qd_probe(0x30)) qd_probe(0xb0);
if (ide_hwifs[0].chipset != ide_qd65xx && if (ide_hwifs[0].chipset != ide_qd65xx &&
...@@ -505,7 +505,7 @@ int __init qd65xx_mod_init(void) ...@@ -505,7 +505,7 @@ int __init qd65xx_mod_init(void)
} }
module_init(qd65xx_mod_init); module_init(qd65xx_mod_init);
void __init qd65xx_mod_exit(void) static void __exit qd65xx_mod_exit(void)
{ {
qd_unsetup(0); qd_unsetup(0);
qd_unsetup(1); qd_unsetup(1);
......
...@@ -207,7 +207,7 @@ MODULE_AUTHOR("Wolfram Podien"); ...@@ -207,7 +207,7 @@ MODULE_AUTHOR("Wolfram Podien");
MODULE_DESCRIPTION("Support for UMC 8672 IDE chipset"); MODULE_DESCRIPTION("Support for UMC 8672 IDE chipset");
MODULE_LICENSE("GPL"); MODULE_LICENSE("GPL");
int __init umc8672_mod_init(void) static int __init umc8672_mod_init(void)
{ {
if (probe_umc8672()) if (probe_umc8672())
return -ENODEV; return -ENODEV;
...@@ -220,7 +220,7 @@ int __init umc8672_mod_init(void) ...@@ -220,7 +220,7 @@ int __init umc8672_mod_init(void)
} }
module_init(umc8672_mod_init); module_init(umc8672_mod_init);
void __init umc8672_mod_exit(void) static void __exit umc8672_mod_exit(void)
{ {
umc8672_release(); umc8672_release();
} }
......
...@@ -209,7 +209,7 @@ static int l4_calibrate(struct gameport *gameport, int *axes, int *max) ...@@ -209,7 +209,7 @@ static int l4_calibrate(struct gameport *gameport, int *axes, int *max)
return 0; return 0;
} }
int __init l4_init(void) static int __init l4_init(void)
{ {
int cal[4] = {255,255,255,255}; int cal[4] = {255,255,255,255};
int i, j, rev, cards = 0; int i, j, rev, cards = 0;
...@@ -286,7 +286,7 @@ int __init l4_init(void) ...@@ -286,7 +286,7 @@ int __init l4_init(void)
return 0; return 0;
} }
void __init l4_exit(void) static void __exit l4_exit(void)
{ {
int i; int i;
int cal[4] = {59, 59, 59, 59}; int cal[4] = {59, 59, 59, 59};
......
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