carminefb.c (14e77332e74603efab8347c89d3cda447c3b97c9) | carminefb.c (0ba2fa8cbd29278a180ac90bd66b2c0bbdeacc89) |
---|---|
1// SPDX-License-Identifier: GPL-2.0-only 2/* 3 * Frame buffer driver for the Carmine GPU. 4 * 5 * The driver configures the GPU as follows 6 * - FB0 is display 0 with unique memory area 7 * - FB1 is display 1 with unique memory area 8 * - both display use 32 bit colors --- 759 unchanged lines hidden (view full) --- 768 .name = "carminefb", 769 .id_table = carmine_devices, 770 .probe = carminefb_probe, 771 .remove = carminefb_remove, 772}; 773 774static int __init carminefb_init(void) 775{ | 1// SPDX-License-Identifier: GPL-2.0-only 2/* 3 * Frame buffer driver for the Carmine GPU. 4 * 5 * The driver configures the GPU as follows 6 * - FB0 is display 0 with unique memory area 7 * - FB1 is display 1 with unique memory area 8 * - both display use 32 bit colors --- 759 unchanged lines hidden (view full) --- 768 .name = "carminefb", 769 .id_table = carmine_devices, 770 .probe = carminefb_probe, 771 .remove = carminefb_remove, 772}; 773 774static int __init carminefb_init(void) 775{ |
776 if (fb_modesetting_disabled("carminefb")) 777 return -ENODEV; 778 |
|
776 if (!(fb_displays & 777 (CARMINE_USE_DISPLAY0 | CARMINE_USE_DISPLAY1))) { 778 printk(KERN_ERR "If you disable both displays than you don't " 779 "need the driver at all\n"); 780 return -EINVAL; 781 } 782 return pci_register_driver(&carmine_pci_driver); 783} 784module_init(carminefb_init); 785 786static void __exit carminefb_cleanup(void) 787{ 788 pci_unregister_driver(&carmine_pci_driver); 789} 790module_exit(carminefb_cleanup); 791 792MODULE_AUTHOR("Sebastian Siewior <bigeasy@linutronix.de>"); 793MODULE_DESCRIPTION("Framebuffer driver for Fujitsu Carmine based devices"); 794MODULE_LICENSE("GPL v2"); | 779 if (!(fb_displays & 780 (CARMINE_USE_DISPLAY0 | CARMINE_USE_DISPLAY1))) { 781 printk(KERN_ERR "If you disable both displays than you don't " 782 "need the driver at all\n"); 783 return -EINVAL; 784 } 785 return pci_register_driver(&carmine_pci_driver); 786} 787module_init(carminefb_init); 788 789static void __exit carminefb_cleanup(void) 790{ 791 pci_unregister_driver(&carmine_pci_driver); 792} 793module_exit(carminefb_cleanup); 794 795MODULE_AUTHOR("Sebastian Siewior <bigeasy@linutronix.de>"); 796MODULE_DESCRIPTION("Framebuffer driver for Fujitsu Carmine based devices"); 797MODULE_LICENSE("GPL v2"); |