lkml.org 
[lkml]   [2004]   [Jul]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH] modular anslcd

--- 1.7/drivers/macintosh/Kconfig 2004-05-19 18:02:46 +02:00
+++ edited/drivers/macintosh/Kconfig 2004-07-07 23:49:37 +02:00
@@ -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
--- 1.3/drivers/macintosh/ans-lcd.c 2003-01-06 04:08:28 +01:00
+++ edited/drivers/macintosh/ans-lcd.c 2004-07-08 00:05:05 +02:00
@@ -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);
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
\
 
 \ /
  Last update: 2005-03-22 14:04    [W:0.024 / U:0.300 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site