diff options
Diffstat (limited to 'drivers/video/skeletonfb.c')
-rw-r--r-- | drivers/video/skeletonfb.c | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/drivers/video/skeletonfb.c b/drivers/video/skeletonfb.c index 5b6abc6de84b..2d4694c6b9e0 100644 --- a/drivers/video/skeletonfb.c +++ b/drivers/video/skeletonfb.c | |||
@@ -63,7 +63,7 @@ | |||
63 | /* | 63 | /* |
64 | * Driver data | 64 | * Driver data |
65 | */ | 65 | */ |
66 | static char *mode_option __devinitdata; | 66 | static char *mode_option; |
67 | 67 | ||
68 | /* | 68 | /* |
69 | * If your driver supports multiple boards, you should make the | 69 | * If your driver supports multiple boards, you should make the |
@@ -84,7 +84,7 @@ struct xxx_par; | |||
84 | * if we don't use modedb. If we do use modedb see xxxfb_init how to use it | 84 | * if we don't use modedb. If we do use modedb see xxxfb_init how to use it |
85 | * to get a fb_var_screeninfo. Otherwise define a default var as well. | 85 | * to get a fb_var_screeninfo. Otherwise define a default var as well. |
86 | */ | 86 | */ |
87 | static struct fb_fix_screeninfo xxxfb_fix __devinitdata = { | 87 | static struct fb_fix_screeninfo xxxfb_fix = { |
88 | .id = "FB's name", | 88 | .id = "FB's name", |
89 | .type = FB_TYPE_PACKED_PIXELS, | 89 | .type = FB_TYPE_PACKED_PIXELS, |
90 | .visual = FB_VISUAL_PSEUDOCOLOR, | 90 | .visual = FB_VISUAL_PSEUDOCOLOR, |
@@ -678,8 +678,7 @@ static struct fb_ops xxxfb_ops = { | |||
678 | */ | 678 | */ |
679 | 679 | ||
680 | /* static int __init xxfb_probe (struct platform_device *pdev) -- for platform devs */ | 680 | /* static int __init xxfb_probe (struct platform_device *pdev) -- for platform devs */ |
681 | static int __devinit xxxfb_probe(struct pci_dev *dev, | 681 | static int xxxfb_probe(struct pci_dev *dev, const struct pci_device_id *ent) |
682 | const struct pci_device_id *ent) | ||
683 | { | 682 | { |
684 | struct fb_info *info; | 683 | struct fb_info *info; |
685 | struct xxx_par *par; | 684 | struct xxx_par *par; |
@@ -705,9 +704,7 @@ static int __devinit xxxfb_probe(struct pci_dev *dev, | |||
705 | */ | 704 | */ |
706 | info->screen_base = framebuffer_virtual_memory; | 705 | info->screen_base = framebuffer_virtual_memory; |
707 | info->fbops = &xxxfb_ops; | 706 | info->fbops = &xxxfb_ops; |
708 | info->fix = xxxfb_fix; /* this will be the only time xxxfb_fix will be | 707 | info->fix = xxxfb_fix; |
709 | * used, so mark it as __devinitdata | ||
710 | */ | ||
711 | info->pseudo_palette = pseudo_palette; /* The pseudopalette is an | 708 | info->pseudo_palette = pseudo_palette; /* The pseudopalette is an |
712 | * 16-member array | 709 | * 16-member array |
713 | */ | 710 | */ |
@@ -836,8 +833,8 @@ static int __devinit xxxfb_probe(struct pci_dev *dev, | |||
836 | /* | 833 | /* |
837 | * Cleanup | 834 | * Cleanup |
838 | */ | 835 | */ |
839 | /* static void __devexit xxxfb_remove(struct platform_device *pdev) */ | 836 | /* static void xxxfb_remove(struct platform_device *pdev) */ |
840 | static void __devexit xxxfb_remove(struct pci_dev *dev) | 837 | static void xxxfb_remove(struct pci_dev *dev) |
841 | { | 838 | { |
842 | struct fb_info *info = pci_get_drvdata(dev); | 839 | struct fb_info *info = pci_get_drvdata(dev); |
843 | /* or platform_get_drvdata(pdev); */ | 840 | /* or platform_get_drvdata(pdev); */ |
@@ -899,7 +896,7 @@ static struct pci_driver xxxfb_driver = { | |||
899 | .name = "xxxfb", | 896 | .name = "xxxfb", |
900 | .id_table = xxxfb_id_table, | 897 | .id_table = xxxfb_id_table, |
901 | .probe = xxxfb_probe, | 898 | .probe = xxxfb_probe, |
902 | .remove = __devexit_p(xxxfb_remove), | 899 | .remove = xxxfb_remove, |
903 | .suspend = xxxfb_suspend, /* optional but recommended */ | 900 | .suspend = xxxfb_suspend, /* optional but recommended */ |
904 | .resume = xxxfb_resume, /* optional but recommended */ | 901 | .resume = xxxfb_resume, /* optional but recommended */ |
905 | }; | 902 | }; |