patch-2.3.9 linux/drivers/sgi/char/newport.c

Next file: linux/drivers/sgi/char/newport.h
Previous file: linux/drivers/sgi/char/graphics_syms.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.8/linux/drivers/sgi/char/newport.c linux/drivers/sgi/char/newport.c
@@ -4,13 +4,19 @@
  *
  * Author: Miguel de Icaza
  */
+
 #include <linux/errno.h>
 #include <linux/sched.h>
 #include <asm/types.h>
 #include <asm/gfx.h>
 #include <asm/ng1.h>
 #include <asm/uaccess.h>
-#include "newport.h"
+#include <asm/newport.h>
+#include <linux/module.h>
+
+struct newport_regs *npregs;
+
+EXPORT_SYMBOL(npregs);
 
 /* Kernel routines for supporting graphics context switching */
 
@@ -167,7 +173,6 @@
 {
 	switch (cmd){
 	case NG1_SETDISPLAYMODE: {
-		int i;
 		struct ng1_setdisplaymode_args request;
 		
 		if (copy_from_user (&request, (void *) arg, sizeof (request)))

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)