提交 5e14ab8b 编写于 作者: P Prarit Bhargava 提交者: Linus Torvalds

[PATCH] change nvidiafb_remove to __devexit

Change nvidiafb_remove to __devexit to fix MODPOST warnings:

WARNING: drivers/video/nvidia/nvidiafb.o - Section mismatch: reference to
.exit.text:nvidiafb_remove from .data.rel.local after 'nvidiafb_driver' (at
offset 0x28)
Signed-off-by: NPrarit Bhargava <prarit@redhat.com>
Acked-By: NJames Simmons <jsimmons@infradead.org>
Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
上级 f5610b9c
......@@ -1345,7 +1345,7 @@ static int __devinit nvidiafb_probe(struct pci_dev *pd,
return -ENODEV;
}
static void __exit nvidiafb_remove(struct pci_dev *pd)
static void __devexit nvidiafb_remove(struct pci_dev *pd)
{
struct fb_info *info = pci_get_drvdata(pd);
struct nvidia_par *par = info->par;
......@@ -1431,7 +1431,7 @@ static struct pci_driver nvidiafb_driver = {
.probe = nvidiafb_probe,
.suspend = nvidiafb_suspend,
.resume = nvidiafb_resume,
.remove = __exit_p(nvidiafb_remove),
.remove = __devexit_p(nvidiafb_remove),
};
/* ------------------------------------------------------------------------- *
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册