Commit 02315cb9 authored by Christoph Hellwig's avatar Christoph Hellwig Committed by Linus Torvalds

[PATCH] Fix modular anscd

Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 1019f5bb
......@@ -184,7 +184,7 @@ config THERM_PM72
G5 machines.
config ANSLCD
bool "Support for ANS LCD display"
tristate "Support for ANS LCD display"
depends on ADB_CUDA && PPC_PMAC
endmenu
......@@ -136,7 +136,7 @@ const char anslcd_logo[] = "********************" /* Line #1 */
"* Welcome to *" /* Line #2 */
"********************"; /* Line #4 */
int __init
static int __init
anslcd_init(void)
{
int a;
......@@ -173,5 +173,12 @@ anslcd_init(void)
return 0;
}
__initcall(anslcd_init);
static void __exit
anslcd_exit(void)
{
misc_deregister(&anslcd_dev);
iounmap(anslcd_ptr);
}
module_init(anslcd_init);
module_exit(anslcd_exit);
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