modular anslcd
PATCH 1/1 modular anslcd
drivers/macintosh/Kconfig +1 -1
@@ -191,7 +184,7 @@ G5 machines. config ANSLCD - bool "Support for ANS LCD display" + tristate "Support for ANS LCD display" depends on ADB_CUDA && PPC_PMAC endmenu
drivers/macintosh/ans-lcd.c +9 -2
@@ -136,7 +136,7 @@"* Welcome to *" /* Line #2 */ "********************" ;/* Line #4 */ -int __init +static int __init anslcd_init (void ) {int a;
@@ -173,5 +173,12 @@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);