Commit 6fb185bc authored by Randy Dunlap's avatar Randy Dunlap Committed by Linus Torvalds

[PATCH] sound/oss/aedsp16: init/exit section cleanups:

Exit-only function uninit_aedsp16() was marked __init instead of __exit;
ae_config data was marked __initdata but used during exit;
several cleanup functions were marked _init but used for init or exit
  cleanups;

Error: ./sound/oss/aedsp16.o .exit.text refers to 0000000000000004 R_X86_64_PC32     .init.data+0x000000000000003b
Error: ./sound/oss/aedsp16.o .exit.text refers to 000000000000000c R_X86_64_PC32     .init.text+0x00000000000001e4
Error: ./sound/oss/aedsp16.o .exit.text refers to 0000000000000013 R_X86_64_PC32     .init.text+0x0000000000000034
Error: ./sound/oss/aedsp16.o .exit.text refers to 0000000000000019 R_X86_64_PC32     .init.data+0x000000000000003f
Error: ./sound/oss/aedsp16.o .exit.text refers to 0000000000000023 R_X86_64_PC32     .init.text+0x00000000000001b4
Signed-off-by: default avatarRandy Dunlap <rddunlap@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 7e15c47e
......@@ -489,7 +489,7 @@ static struct orVals orDMA[] __initdata = {
{0x00, 0x00}
};
static struct aedsp16_info ae_config __initdata = {
static struct aedsp16_info ae_config = {
DEF_AEDSP16_IOB,
DEF_AEDSP16_IRQ,
DEF_AEDSP16_MRQ,
......@@ -1155,7 +1155,7 @@ static int __init init_aedsp16_sb(void)
return TRUE;
}
static void __init uninit_aedsp16_sb(void)
static void uninit_aedsp16_sb(void)
{
DBG(("uninit_aedsp16_sb: "));
......@@ -1196,7 +1196,7 @@ static int __init init_aedsp16_mss(void)
return TRUE;
}
static void __init uninit_aedsp16_mss(void)
static void uninit_aedsp16_mss(void)
{
DBG(("uninit_aedsp16_mss: "));
......@@ -1237,7 +1237,7 @@ static int __init init_aedsp16_mpu(void)
return TRUE;
}
static void __init uninit_aedsp16_mpu(void)
static void uninit_aedsp16_mpu(void)
{
DBG(("uninit_aedsp16_mpu: "));
......@@ -1294,7 +1294,7 @@ static int __init init_aedsp16(void)
return initialized;
}
static void __init uninit_aedsp16(void)
static void __exit uninit_aedsp16(void)
{
if (ae_config.mss_base != -1)
uninit_aedsp16_mss();
......
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