aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/video/tgafb.c18
1 files changed, 7 insertions, 11 deletions
diff --git a/drivers/video/tgafb.c b/drivers/video/tgafb.c
index 0679b389a808..2a6bfcdc3039 100644
--- a/drivers/video/tgafb.c
+++ b/drivers/video/tgafb.c
@@ -43,8 +43,9 @@ static void tgafb_imageblit(struct fb_info *, const struct fb_image *);
43static void tgafb_fillrect(struct fb_info *, const struct fb_fillrect *); 43static void tgafb_fillrect(struct fb_info *, const struct fb_fillrect *);
44static void tgafb_copyarea(struct fb_info *, const struct fb_copyarea *); 44static void tgafb_copyarea(struct fb_info *, const struct fb_copyarea *);
45 45
46static int tgafb_pci_register(struct pci_dev *, const struct pci_device_id *); 46static int __devinit tgafb_pci_register(struct pci_dev *,
47static void tgafb_pci_unregister(struct pci_dev *); 47 const struct pci_device_id *);
48static void __devexit tgafb_pci_unregister(struct pci_dev *);
48 49
49static const char *mode_option = "640x480@60"; 50static const char *mode_option = "640x480@60";
50 51
@@ -1454,7 +1455,7 @@ tgafb_pci_register(struct pci_dev *pdev, const struct pci_device_id *ent)
1454 return ret; 1455 return ret;
1455} 1456}
1456 1457
1457static void __exit 1458static void __devexit
1458tgafb_pci_unregister(struct pci_dev *pdev) 1459tgafb_pci_unregister(struct pci_dev *pdev)
1459{ 1460{
1460 struct fb_info *info = pci_get_drvdata(pdev); 1461 struct fb_info *info = pci_get_drvdata(pdev);
@@ -1470,16 +1471,14 @@ tgafb_pci_unregister(struct pci_dev *pdev)
1470 framebuffer_release(info); 1471 framebuffer_release(info);
1471} 1472}
1472 1473
1473#ifdef MODULE 1474static void __devexit
1474static void __exit
1475tgafb_exit(void) 1475tgafb_exit(void)
1476{ 1476{
1477 pci_unregister_driver(&tgafb_driver); 1477 pci_unregister_driver(&tgafb_driver);
1478} 1478}
1479#endif /* MODULE */
1480 1479
1481#ifndef MODULE 1480#ifndef MODULE
1482int __init 1481static int __devinit
1483tgafb_setup(char *arg) 1482tgafb_setup(char *arg)
1484{ 1483{
1485 char *this_opt; 1484 char *this_opt;
@@ -1501,7 +1500,7 @@ tgafb_setup(char *arg)
1501} 1500}
1502#endif /* !MODULE */ 1501#endif /* !MODULE */
1503 1502
1504int __init 1503static int __devinit
1505tgafb_init(void) 1504tgafb_init(void)
1506{ 1505{
1507#ifndef MODULE 1506#ifndef MODULE
@@ -1519,10 +1518,7 @@ tgafb_init(void)
1519 */ 1518 */
1520 1519
1521module_init(tgafb_init); 1520module_init(tgafb_init);
1522
1523#ifdef MODULE
1524module_exit(tgafb_exit); 1521module_exit(tgafb_exit);
1525#endif
1526 1522
1527MODULE_DESCRIPTION("framebuffer driver for TGA chipset"); 1523MODULE_DESCRIPTION("framebuffer driver for TGA chipset");
1528MODULE_LICENSE("GPL"); 1524MODULE_LICENSE("GPL");