All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] modular anslcd
@ 2004-07-07 20:40 Christoph Hellwig
  0 siblings, 0 replies; only message in thread
From: Christoph Hellwig @ 2004-07-07 20:40 UTC (permalink / raw)
  To: benh; +Cc: linux-kernel


--- 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);

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-07-07 20:42 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-07-07 20:40 [PATCH] modular anslcd Christoph Hellwig

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.