[parisc-linux-cvs] linux deller

Helge Deller deller@gmx.de
Tue, 18 Jun 2002 00:55:44 +0200


--Boundary-00=_wjmD9rjakyiLbA3
Content-Type: text/plain;
  charset="iso-8859-1"
Content-Transfer-Encoding: 8bit
Content-Disposition: inline

On Tuesday 18 June 2002 00:53, Helge Deller wrote:
> CVSROOT:	/var/cvs
> Module name:	linux
> Changes by:	deller	02/06/17 16:53:41
>
> Modified files:
> 	drivers/video/sti: stifb.c
>
> Log message:
> - kernel-message cleanup. respect political correctness (no "you're on
> crack" message anymore) - added
> MODULE_AUTHOR/MODULE_DESCRIPTION/MODULE_LICENSE/MODULE_PARM/MODULE_PARM_DESC



--Boundary-00=_wjmD9rjakyiLbA3
Content-Type: text/plain;
  charset="iso-8859-1";
  name="diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="diff"

Index: stifb.c
===================================================================
RCS file: /var/cvs/linux/drivers/video/sti/stifb.c,v
retrieving revision 1.32
diff -u -p -r1.32 stifb.c
--- stifb.c	2002/06/17 21:46:23	1.32
+++ stifb.c	2002/06/17 22:50:49
@@ -180,8 +180,8 @@ static int stifb_force_bpp[MAX_STI_ROMS]
 #define ENABLE	1	/* for enabling/disabling screen */	
 #define DISABLE 0
 
-#define NGLE_LOCK(fb_info)
-#define NGLE_UNLOCK(fb_info)
+#define NGLE_LOCK(fb_info)	do { } while (0) 
+#define NGLE_UNLOCK(fb_info)	do { } while (0)
 
 static void
 SETUP_HW(struct stifb_info *fb)
@@ -1461,9 +1461,7 @@ stifb_init(void)
 	return 0;
 }
 
-#ifdef MODULE
 module_init(stifb_init);
-#endif
 
 
 /*
@@ -1474,9 +1472,10 @@ void
 stifb_cleanup(struct fb_info *info)
 {
 	// unregister_framebuffer(info); 
-	printk(KERN_WARNING "stifb: %s: you're on crack.\n", __FUNCTION__);
 }
 
+module_exit(stifb_cleanup);
+
 
 int __init
 stifb_setup(char *options)
@@ -1499,3 +1498,11 @@ stifb_setup(char *options)
 }
 
 __setup("stifb=", stifb_setup);
+
+MODULE_AUTHOR("Helge Deller <deller@gmx.de>, Thomas Bogendoerfer <tsbogend@alpha.franken.de>");
+MODULE_DESCRIPTION("Framebuffer driver for HP's NGLE series graphics cards in HP PARISC machines");
+MODULE_LICENSE("GPL");
+
+MODULE_PARM(bpp, "i");
+MODULE_PARM_DESC(mem, "Bits per pixel (default: 8)");
+

--Boundary-00=_wjmD9rjakyiLbA3--