fm2fb.c (8dd06ef34b6e2f41b29fbf5fc1663780f2524285) fm2fb.c (6a7d270e901965b0f8643db885cdc2e6e93b8621)
1/*
2 * linux/drivers/video/fm2fb.c -- BSC FrameMaster II/Rainbow II frame buffer
3 * device
4 *
5 * Copyright (C) 1998 Steffen A. Mork (linux-dev@morknet.de)
6 * Copyright (C) 1999 Geert Uytterhoeven
7 *
8 * Written for 2.0.x by Steffen A. Mork

--- 279 unchanged lines hidden (view full) ---

288 framebuffer_release(info);
289 zorro_release_device(z);
290 return -EINVAL;
291 }
292 fb_info(info, "%s frame buffer device\n", fb_fix.id);
293 return 0;
294}
295
1/*
2 * linux/drivers/video/fm2fb.c -- BSC FrameMaster II/Rainbow II frame buffer
3 * device
4 *
5 * Copyright (C) 1998 Steffen A. Mork (linux-dev@morknet.de)
6 * Copyright (C) 1999 Geert Uytterhoeven
7 *
8 * Written for 2.0.x by Steffen A. Mork

--- 279 unchanged lines hidden (view full) ---

288 framebuffer_release(info);
289 zorro_release_device(z);
290 return -EINVAL;
291 }
292 fb_info(info, "%s frame buffer device\n", fb_fix.id);
293 return 0;
294}
295
296int __init fm2fb_setup(char *options)
296static int __init fm2fb_setup(char *options)
297{
298 char *this_opt;
299
300 if (!options || !*options)
301 return 0;
302
303 while ((this_opt = strsep(&options, ",")) != NULL) {
304 if (!strncmp(this_opt, "pal", 3))
305 fm2fb_mode = FM2FB_MODE_PAL;
306 else if (!strncmp(this_opt, "ntsc", 4))
307 fm2fb_mode = FM2FB_MODE_NTSC;
308 }
309 return 0;
310}
311
297{
298 char *this_opt;
299
300 if (!options || !*options)
301 return 0;
302
303 while ((this_opt = strsep(&options, ",")) != NULL) {
304 if (!strncmp(this_opt, "pal", 3))
305 fm2fb_mode = FM2FB_MODE_PAL;
306 else if (!strncmp(this_opt, "ntsc", 4))
307 fm2fb_mode = FM2FB_MODE_NTSC;
308 }
309 return 0;
310}
311
312int __init fm2fb_init(void)
312static int __init fm2fb_init(void)
313{
314 char *option = NULL;
315
316 if (fb_get_options("fm2fb", &option))
317 return -ENODEV;
318 fm2fb_setup(option);
319 return zorro_register_driver(&fm2fb_driver);
320}
321
322module_init(fm2fb_init);
323MODULE_LICENSE("GPL");
313{
314 char *option = NULL;
315
316 if (fb_get_options("fm2fb", &option))
317 return -ENODEV;
318 fm2fb_setup(option);
319 return zorro_register_driver(&fm2fb_driver);
320}
321
322module_init(fm2fb_init);
323MODULE_LICENSE("GPL");