提交 62b56faa 编写于 作者: A Adrian Bunk 提交者: Linus Torvalds

[PATCH] Fix tgafb.c compile failure

The untested patch below should fix this compile error.
Signed-off-by: NAdrian Bunk <bunk@stusta.de>
Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
上级 e4ec0f23
...@@ -45,9 +45,7 @@ static void tgafb_fillrect(struct fb_info *, const struct fb_fillrect *); ...@@ -45,9 +45,7 @@ static void tgafb_fillrect(struct fb_info *, const struct fb_fillrect *);
static void tgafb_copyarea(struct fb_info *, const struct fb_copyarea *); static void tgafb_copyarea(struct fb_info *, const struct fb_copyarea *);
static int tgafb_pci_register(struct pci_dev *, const struct pci_device_id *); static int tgafb_pci_register(struct pci_dev *, const struct pci_device_id *);
#ifdef MODULE
static void tgafb_pci_unregister(struct pci_dev *); static void tgafb_pci_unregister(struct pci_dev *);
#endif
static const char *mode_option = "640x480@60"; static const char *mode_option = "640x480@60";
...@@ -1484,7 +1482,6 @@ tgafb_pci_register(struct pci_dev *pdev, const struct pci_device_id *ent) ...@@ -1484,7 +1482,6 @@ tgafb_pci_register(struct pci_dev *pdev, const struct pci_device_id *ent)
return ret; return ret;
} }
#ifdef MODULE
static void __exit static void __exit
tgafb_pci_unregister(struct pci_dev *pdev) tgafb_pci_unregister(struct pci_dev *pdev)
{ {
...@@ -1500,6 +1497,7 @@ tgafb_pci_unregister(struct pci_dev *pdev) ...@@ -1500,6 +1497,7 @@ tgafb_pci_unregister(struct pci_dev *pdev)
kfree(info); kfree(info);
} }
#ifdef MODULE
static void __exit static void __exit
tgafb_exit(void) tgafb_exit(void)
{ {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册