aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/video/gxt4500.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/video/gxt4500.c')
-rw-r--r--drivers/video/gxt4500.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/drivers/video/gxt4500.c b/drivers/video/gxt4500.c
index 4bdea6e9bd55..c35663f6a54a 100644
--- a/drivers/video/gxt4500.c
+++ b/drivers/video/gxt4500.c
@@ -159,7 +159,7 @@ struct gxt4500_par {
159static char *mode_option; 159static char *mode_option;
160 160
161/* default mode: 1280x1024 @ 60 Hz, 8 bpp */ 161/* default mode: 1280x1024 @ 60 Hz, 8 bpp */
162static const struct fb_videomode defaultmode __devinitconst = { 162static const struct fb_videomode defaultmode = {
163 .refresh = 60, 163 .refresh = 60,
164 .xres = 1280, 164 .xres = 1280,
165 .yres = 1024, 165 .yres = 1024,
@@ -588,7 +588,7 @@ static int gxt4500_blank(int blank, struct fb_info *info)
588 return 0; 588 return 0;
589} 589}
590 590
591static const struct fb_fix_screeninfo gxt4500_fix __devinitconst = { 591static const struct fb_fix_screeninfo gxt4500_fix = {
592 .id = "IBM GXT4500P", 592 .id = "IBM GXT4500P",
593 .type = FB_TYPE_PACKED_PIXELS, 593 .type = FB_TYPE_PACKED_PIXELS,
594 .visual = FB_VISUAL_PSEUDOCOLOR, 594 .visual = FB_VISUAL_PSEUDOCOLOR,
@@ -610,8 +610,7 @@ static struct fb_ops gxt4500_ops = {
610}; 610};
611 611
612/* PCI functions */ 612/* PCI functions */
613static int __devinit gxt4500_probe(struct pci_dev *pdev, 613static int gxt4500_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
614 const struct pci_device_id *ent)
615{ 614{
616 int err; 615 int err;
617 unsigned long reg_phys, fb_phys; 616 unsigned long reg_phys, fb_phys;
@@ -720,7 +719,7 @@ static int __devinit gxt4500_probe(struct pci_dev *pdev,
720 return -ENODEV; 719 return -ENODEV;
721} 720}
722 721
723static void __devexit gxt4500_remove(struct pci_dev *pdev) 722static void gxt4500_remove(struct pci_dev *pdev)
724{ 723{
725 struct fb_info *info = pci_get_drvdata(pdev); 724 struct fb_info *info = pci_get_drvdata(pdev);
726 struct gxt4500_par *par; 725 struct gxt4500_par *par;
@@ -758,10 +757,10 @@ static struct pci_driver gxt4500_driver = {
758 .name = "gxt4500", 757 .name = "gxt4500",
759 .id_table = gxt4500_pci_tbl, 758 .id_table = gxt4500_pci_tbl,
760 .probe = gxt4500_probe, 759 .probe = gxt4500_probe,
761 .remove = __devexit_p(gxt4500_remove), 760 .remove = gxt4500_remove,
762}; 761};
763 762
764static int __devinit gxt4500_init(void) 763static int gxt4500_init(void)
765{ 764{
766#ifndef MODULE 765#ifndef MODULE
767 if (fb_get_options("gxt4500", &mode_option)) 766 if (fb_get_options("gxt4500", &mode_option))