s3fb.c (002c6ca75289a4ac4f6738213dd2d258704886e4) | s3fb.c (0ba2fa8cbd29278a180ac90bd66b2c0bbdeacc89) |
---|---|
1/* 2 * linux/drivers/video/s3fb.c -- Frame buffer device driver for S3 Trio/Virge 3 * 4 * Copyright (c) 2006-2007 Ondrej Zajicek <santiago@crfreenet.org> 5 * 6 * This file is subject to the terms and conditions of the GNU General Public 7 * License. See the file COPYING in the main directory of this archive for 8 * more details. --- 1544 unchanged lines hidden (view full) --- 1553 1554/* Driver Initialisation */ 1555 1556static int __init s3fb_init(void) 1557{ 1558 1559#ifndef MODULE 1560 char *option = NULL; | 1/* 2 * linux/drivers/video/s3fb.c -- Frame buffer device driver for S3 Trio/Virge 3 * 4 * Copyright (c) 2006-2007 Ondrej Zajicek <santiago@crfreenet.org> 5 * 6 * This file is subject to the terms and conditions of the GNU General Public 7 * License. See the file COPYING in the main directory of this archive for 8 * more details. --- 1544 unchanged lines hidden (view full) --- 1553 1554/* Driver Initialisation */ 1555 1556static int __init s3fb_init(void) 1557{ 1558 1559#ifndef MODULE 1560 char *option = NULL; |
1561#endif |
|
1561 | 1562 |
1563 if (fb_modesetting_disabled("s3fb")) 1564 return -ENODEV; 1565 1566#ifndef MODULE |
|
1562 if (fb_get_options("s3fb", &option)) 1563 return -ENODEV; 1564 s3fb_setup(option); 1565#endif 1566 1567 pr_debug("s3fb: initializing\n"); 1568 return pci_register_driver(&s3fb_pci_driver); 1569} 1570 1571/* ------------------------------------------------------------------------- */ 1572 1573/* Modularization */ 1574 1575module_init(s3fb_init); 1576module_exit(s3fb_cleanup); | 1567 if (fb_get_options("s3fb", &option)) 1568 return -ENODEV; 1569 s3fb_setup(option); 1570#endif 1571 1572 pr_debug("s3fb: initializing\n"); 1573 return pci_register_driver(&s3fb_pci_driver); 1574} 1575 1576/* ------------------------------------------------------------------------- */ 1577 1578/* Modularization */ 1579 1580module_init(s3fb_init); 1581module_exit(s3fb_cleanup); |