mirror of https://gitee.com/openkylin/linux.git
[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: Prarit Bhargava <prarit@redhat.com> Acked-By: James Simmons <jsimmons@infradead.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
f5610b9c3a
commit
5e14ab8b5e
|
@ -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),
|
||||
};
|
||||
|
||||
/* ------------------------------------------------------------------------- *
|
||||
|
|
Loading…
Reference in New Issue