提交 19c1a8b3 编写于 作者: K Krzysztof Helt 提交者: Linus Torvalds

skeletonfb: improvements

This patch adds a macro to register PCI ids table and corrects type of
xxxfb_fix variable to avoid modpost warnings.
Signed-off-by: NKrzysztof Helt <krzysztof.h1@wp.pl>
Signed-off-by: NAntonino Daplas <adaplas@gmail.com>
Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
上级 4560daaf
...@@ -84,7 +84,7 @@ struct xxx_par; ...@@ -84,7 +84,7 @@ struct xxx_par;
* if we don't use modedb. If we do use modedb see xxxfb_init how to use it * if we don't use modedb. If we do use modedb see xxxfb_init how to use it
* to get a fb_var_screeninfo. Otherwise define a default var as well. * to get a fb_var_screeninfo. Otherwise define a default var as well.
*/ */
static struct fb_fix_screeninfo xxxfb_fix __initdata = { static struct fb_fix_screeninfo xxxfb_fix __devinitdata = {
.id = "FB's name", .id = "FB's name",
.type = FB_TYPE_PACKED_PIXELS, .type = FB_TYPE_PACKED_PIXELS,
.visual = FB_VISUAL_PSEUDOCOLOR, .visual = FB_VISUAL_PSEUDOCOLOR,
...@@ -705,7 +705,7 @@ static int __devinit xxxfb_probe(struct pci_dev *dev, ...@@ -705,7 +705,7 @@ static int __devinit xxxfb_probe(struct pci_dev *dev,
info->screen_base = framebuffer_virtual_memory; info->screen_base = framebuffer_virtual_memory;
info->fbops = &xxxfb_ops; info->fbops = &xxxfb_ops;
info->fix = xxxfb_fix; /* this will be the only time xxxfb_fix will be info->fix = xxxfb_fix; /* this will be the only time xxxfb_fix will be
* used, so mark it as __initdata * used, so mark it as __devinitdata
*/ */
info->pseudo_palette = pseudo_palette; /* The pseudopalette is an info->pseudo_palette = pseudo_palette; /* The pseudopalette is an
* 16-member array * 16-member array
...@@ -900,6 +900,8 @@ static struct pci_driver xxxfb_driver = { ...@@ -900,6 +900,8 @@ static struct pci_driver xxxfb_driver = {
.resume = xxxfb_resume, /* optional but recommended */ .resume = xxxfb_resume, /* optional but recommended */
}; };
MODULE_DEVICE_TABLE(pci, xxxfb_id_table);
int __init xxxfb_init(void) int __init xxxfb_init(void)
{ {
/* /*
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册