tgafb.c (002c6ca75289a4ac4f6738213dd2d258704886e4) tgafb.c (0ba2fa8cbd29278a180ac90bd66b2c0bbdeacc89)
1/*
2 * linux/drivers/video/tgafb.c -- DEC 21030 TGA frame buffer device
3 *
4 * Copyright (C) 1995 Jay Estabrook
5 * Copyright (C) 1997 Geert Uytterhoeven
6 * Copyright (C) 1999,2000 Martin Lucina, Tom Zerucha
7 * Copyright (C) 2002 Richard Henderson
8 * Copyright (C) 2006, 2007 Maciej W. Rozycki

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

1592}
1593#endif /* !MODULE */
1594
1595static int tgafb_init(void)
1596{
1597 int status;
1598#ifndef MODULE
1599 char *option = NULL;
1/*
2 * linux/drivers/video/tgafb.c -- DEC 21030 TGA frame buffer device
3 *
4 * Copyright (C) 1995 Jay Estabrook
5 * Copyright (C) 1997 Geert Uytterhoeven
6 * Copyright (C) 1999,2000 Martin Lucina, Tom Zerucha
7 * Copyright (C) 2002 Richard Henderson
8 * Copyright (C) 2006, 2007 Maciej W. Rozycki

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

1592}
1593#endif /* !MODULE */
1594
1595static int tgafb_init(void)
1596{
1597 int status;
1598#ifndef MODULE
1599 char *option = NULL;
1600#endif
1600
1601
1602 if (fb_modesetting_disabled("tgafb"))
1603 return -ENODEV;
1604
1605#ifndef MODULE
1601 if (fb_get_options("tgafb", &option))
1602 return -ENODEV;
1603 tgafb_setup(option);
1604#endif
1605 status = pci_register_driver(&tgafb_pci_driver);
1606 if (!status)
1607 status = tc_register_driver(&tgafb_tc_driver);
1608 return status;
1609}
1610
1611/*
1612 * Modularisation
1613 */
1614
1615module_init(tgafb_init);
1616module_exit(tgafb_exit);
1617
1618MODULE_DESCRIPTION("Framebuffer driver for TGA/SFB+ chipset");
1619MODULE_LICENSE("GPL");
1606 if (fb_get_options("tgafb", &option))
1607 return -ENODEV;
1608 tgafb_setup(option);
1609#endif
1610 status = pci_register_driver(&tgafb_pci_driver);
1611 if (!status)
1612 status = tc_register_driver(&tgafb_tc_driver);
1613 return status;
1614}
1615
1616/*
1617 * Modularisation
1618 */
1619
1620module_init(tgafb_init);
1621module_exit(tgafb_exit);
1622
1623MODULE_DESCRIPTION("Framebuffer driver for TGA/SFB+ chipset");
1624MODULE_LICENSE("GPL");