summaryrefslogtreecommitdiffstats
path: root/drivers/video/macfb.c
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>1999-10-09 00:00:47 +0000
committerRalf Baechle <ralf@linux-mips.org>1999-10-09 00:00:47 +0000
commitd6434e1042f3b0a6dfe1b1f615af369486f9b1fa (patch)
treee2be02f33984c48ec019c654051d27964e42c441 /drivers/video/macfb.c
parent609d1e803baf519487233b765eb487f9ec227a18 (diff)
Merge with 2.3.19.
Diffstat (limited to 'drivers/video/macfb.c')
-rw-r--r--drivers/video/macfb.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/drivers/video/macfb.c b/drivers/video/macfb.c
index 0f964f60a..282c47739 100644
--- a/drivers/video/macfb.c
+++ b/drivers/video/macfb.c
@@ -157,7 +157,7 @@ static void macfb_encode_fix(struct fb_fix_screeninfo *fix,
/*
* fbmem.c accepts non page aligned mappings now!
*/
- fix->smem_start=(char *)mac_videobase;
+ fix->smem_start=mac_videobase;
fix->smem_len=mac_videosize;
fix->type = FB_TYPE_PACKED_PIXELS;
if (mac_depth == 1)
@@ -459,14 +459,14 @@ static struct fb_ops macfb_ops = {
macfb_ioctl
};
-void macfb_setup(char *options, int *ints)
+int __init macfb_setup(char *options)
{
char *this_opt;
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;
@@ -478,6 +478,7 @@ void macfb_setup(char *options, int *ints)
printk("macfb_setup: option %s\n", this_opt);
}
}
+ return 0;
}
static int macfb_switch(int con, struct fb_info *info)
@@ -512,12 +513,12 @@ static struct nubus_device_specifier nb_video={
NULL
};
-__initfunc(void macfb_init(void))
+int __init macfb_init(void)
{
/* nubus_remap the video .. */
if (!MACH_IS_MAC)
- return;
+ return -ENXIO;
mac_xres=mac_bi_data.dimensions&0xFFFF;
mac_yres=(mac_bi_data.dimensions&0xFFFF0000)>>16;
@@ -572,11 +573,12 @@ __initfunc(void macfb_init(void))
if (register_framebuffer(&fb_info) < 0)
{
- return;
+ return -EINVAL;
}
printk("fb%d: %s frame buffer device using %ldK of video memory\n",
GET_FB_IDX(fb_info.node), fb_info.modename, mac_videosize>>10);
+ return 0;
}
#if 0