Skip to content

Commit ee3e9fa

Browse files
arndbmattst88
authored andcommitted
alpha: fp_emul: avoid init/cleanup_module names
This is one of the last modules using the old calling conventions for module init/exit functions. Change it over to the style used everywhere else. Signed-off-by: Arnd Bergmann <[email protected]> Signed-off-by: Matt Turner <[email protected]>
1 parent 15b9e38 commit ee3e9fa

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

arch/alpha/math-emu/math.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,20 +65,22 @@ static long (*save_emul) (unsigned long pc);
6565
long do_alpha_fp_emul_imprecise(struct pt_regs *, unsigned long);
6666
long do_alpha_fp_emul(unsigned long);
6767

68-
int init_module(void)
68+
static int alpha_fp_emul_init_module(void)
6969
{
7070
save_emul_imprecise = alpha_fp_emul_imprecise;
7171
save_emul = alpha_fp_emul;
7272
alpha_fp_emul_imprecise = do_alpha_fp_emul_imprecise;
7373
alpha_fp_emul = do_alpha_fp_emul;
7474
return 0;
7575
}
76+
module_init(alpha_fp_emul_init_module);
7677

77-
void cleanup_module(void)
78+
static void alpha_fp_emul_cleanup_module(void)
7879
{
7980
alpha_fp_emul_imprecise = save_emul_imprecise;
8081
alpha_fp_emul = save_emul;
8182
}
83+
module_exit(alpha_fp_emul_cleanup_module);
8284

8385
#undef alpha_fp_emul_imprecise
8486
#define alpha_fp_emul_imprecise do_alpha_fp_emul_imprecise

0 commit comments

Comments
 (0)