patch-2.3.14 linux/drivers/video/acornfb.c

Next file: linux/drivers/video/amifb.c
Previous file: linux/drivers/video/S3triofb.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.13/linux/drivers/video/acornfb.c linux/drivers/video/acornfb.c
@@ -1728,14 +1728,14 @@
 	{ NULL, NULL }
 };
 
-void __init 
-acornfb_setup(char *options, int *ints)
+int __init 
+acornfb_setup(char *options)
 {
 	struct options *optp;
 	char *opt;
 
 	if (!options || !*options)
-		return;
+		return 0;
 
 	acornfb_init_fbinfo();
 
@@ -1759,6 +1759,7 @@
 			printk(KERN_ERR "acornfb: unknown parameter: %s\n",
 			       opt);
 	}
+	return 0;
 }
 
 /*
@@ -1802,7 +1803,7 @@
 	printk("acornfb: freed %dK memory\n", mb_freed);
 }
 
-void __init 
+int __init 
 acornfb_init(void)
 {
 	unsigned long size;
@@ -1904,5 +1905,7 @@
 		VIDC_NAME, init_var.xres, init_var.yres,
 		h_sync / 1000, h_sync % 1000, v_sync);
 
-	register_framebuffer(&fb_info);
+	if (register_framebuffer(&fb_info) < 0)
+		return -EINVAL;
+	return 0;
 }

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