patch-2.3.14 linux/drivers/video/atafb.c
Next file: linux/drivers/video/atyfb.c
Previous file: linux/drivers/video/amifb.c
Back to the patch index
Back to the overall index
- Lines: 69
- Date:
Thu Aug 12 10:22:33 1999
- Orig file:
v2.3.13/linux/drivers/video/atafb.c
- Orig date:
Mon Aug 9 14:59:23 1999
diff -u --recursive --new-file v2.3.13/linux/drivers/video/atafb.c linux/drivers/video/atafb.c
@@ -2745,14 +2745,14 @@
do_install_cmap(currcon, info);
}
-void __init atafb_init(void)
+int __init atafb_init(void)
{
int pad;
int detected_mode;
unsigned long mem_req;
if (!MACH_IS_ATARI)
- return;
+ return -ENXIO;
do {
#ifdef ATAFB_EXT
@@ -2858,7 +2858,7 @@
do_install_cmap(0, &fb_info);
if (register_framebuffer(&fb_info) < 0)
- return;
+ return -EINVAL;
printk("Determined %dx%d, depth %d\n",
disp.var.xres, disp.var.yres, disp.var.bits_per_pixel);
@@ -2871,6 +2871,8 @@
/* TODO: This driver cannot be unloaded yet */
MOD_INC_USE_COUNT;
+
+ return 0;
}
/* a strtok which returns empty strings, too */
@@ -2895,7 +2897,7 @@
return sbegin;
}
-void __init atafb_setup( char *options, int *ints )
+int __init atafb_setup( char *options )
{
char *this_opt;
int temp;
@@ -2910,7 +2912,7 @@
fb_info.fontname[0] = '\0';
if (!options || !*options)
- return;
+ return 0;
for(this_opt=strtok(options,","); this_opt; this_opt=strtok(NULL,",")) {
if (!*this_opt) continue;
@@ -3146,13 +3148,13 @@
user_invalid:
;
}
+ return 0;
}
#ifdef MODULE
int init_module(void)
{
- atafb_init();
- return 0;
+ return atafb_init();
}
void cleanup_module(void)
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)