arkfb.c (002c6ca75289a4ac4f6738213dd2d258704886e4) | arkfb.c (0ba2fa8cbd29278a180ac90bd66b2c0bbdeacc89) |
---|---|
1/* 2 * linux/drivers/video/arkfb.c -- Frame buffer device driver for ARK 2000PV 3 * with ICS 5342 dac (it is easy to add support for different dacs). 4 * 5 * Copyright (c) 2007 Ondrej Zajicek <santiago@crfreenet.org> 6 * 7 * This file is subject to the terms and conditions of the GNU General Public 8 * License. See the file COPYING in the main directory of this archive for --- 1173 unchanged lines hidden (view full) --- 1182 1183/* Driver Initialisation */ 1184 1185static int __init arkfb_init(void) 1186{ 1187 1188#ifndef MODULE 1189 char *option = NULL; | 1/* 2 * linux/drivers/video/arkfb.c -- Frame buffer device driver for ARK 2000PV 3 * with ICS 5342 dac (it is easy to add support for different dacs). 4 * 5 * Copyright (c) 2007 Ondrej Zajicek <santiago@crfreenet.org> 6 * 7 * This file is subject to the terms and conditions of the GNU General Public 8 * License. See the file COPYING in the main directory of this archive for --- 1173 unchanged lines hidden (view full) --- 1182 1183/* Driver Initialisation */ 1184 1185static int __init arkfb_init(void) 1186{ 1187 1188#ifndef MODULE 1189 char *option = NULL; |
1190#endif |
|
1190 | 1191 |
1192 if (fb_modesetting_disabled("arkfb")) 1193 return -ENODEV; 1194 1195#ifndef MODULE |
|
1191 if (fb_get_options("arkfb", &option)) 1192 return -ENODEV; 1193 1194 if (option && *option) 1195 mode_option = option; 1196#endif 1197 1198 pr_debug("arkfb: initializing\n"); 1199 return pci_register_driver(&arkfb_pci_driver); 1200} 1201 1202module_init(arkfb_init); 1203module_exit(arkfb_cleanup); | 1196 if (fb_get_options("arkfb", &option)) 1197 return -ENODEV; 1198 1199 if (option && *option) 1200 mode_option = option; 1201#endif 1202 1203 pr_debug("arkfb: initializing\n"); 1204 return pci_register_driver(&arkfb_pci_driver); 1205} 1206 1207module_init(arkfb_init); 1208module_exit(arkfb_cleanup); |