neofb.c (14e77332e74603efab8347c89d3cda447c3b97c9) neofb.c (0ba2fa8cbd29278a180ac90bd66b2c0bbdeacc89)
1/*
2 * linux/drivers/video/neofb.c -- NeoMagic Framebuffer Driver
3 *
4 * Copyright (c) 2001-2002 Denis Oliver Kropp <dok@directfb.org>
5 *
6 *
7 * Card specific code is based on XFree86's neomagic driver.
8 * Framebuffer framework code is based on code of cyber2000fb.

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

2204 return 0;
2205}
2206#endif /* MODULE */
2207
2208static int __init neofb_init(void)
2209{
2210#ifndef MODULE
2211 char *option = NULL;
1/*
2 * linux/drivers/video/neofb.c -- NeoMagic Framebuffer Driver
3 *
4 * Copyright (c) 2001-2002 Denis Oliver Kropp <dok@directfb.org>
5 *
6 *
7 * Card specific code is based on XFree86's neomagic driver.
8 * Framebuffer framework code is based on code of cyber2000fb.

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

2204 return 0;
2205}
2206#endif /* MODULE */
2207
2208static int __init neofb_init(void)
2209{
2210#ifndef MODULE
2211 char *option = NULL;
2212#endif
2212
2213
2214 if (fb_modesetting_disabled("neofb"))
2215 return -ENODEV;
2216
2217#ifndef MODULE
2213 if (fb_get_options("neofb", &option))
2214 return -ENODEV;
2215 neofb_setup(option);
2216#endif
2217 return pci_register_driver(&neofb_driver);
2218}
2219
2220module_init(neofb_init);
2221
2222#ifdef MODULE
2223static void __exit neofb_exit(void)
2224{
2225 pci_unregister_driver(&neofb_driver);
2226}
2227
2228module_exit(neofb_exit);
2229#endif /* MODULE */
2218 if (fb_get_options("neofb", &option))
2219 return -ENODEV;
2220 neofb_setup(option);
2221#endif
2222 return pci_register_driver(&neofb_driver);
2223}
2224
2225module_init(neofb_init);
2226
2227#ifdef MODULE
2228static void __exit neofb_exit(void)
2229{
2230 pci_unregister_driver(&neofb_driver);
2231}
2232
2233module_exit(neofb_exit);
2234#endif /* MODULE */