diff options
author | Prarit Bhargava <prarit@redhat.com> | 2007-02-12 03:55:14 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-02-12 12:48:44 -0500 |
commit | 5e14ab8b5ecca8997406180e23761525f49a09a3 (patch) | |
tree | d6b790089cda1262a68166217d280ace43701427 /drivers | |
parent | f5610b9c3a2896fcaa623b92d0f24d83f10bb2c0 (diff) |
[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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/video/nvidia/nvidia.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/video/nvidia/nvidia.c b/drivers/video/nvidia/nvidia.c index f6731dadff3a..547374230179 100644 --- a/drivers/video/nvidia/nvidia.c +++ b/drivers/video/nvidia/nvidia.c | |||
@@ -1345,7 +1345,7 @@ err_out: | |||
1345 | return -ENODEV; | 1345 | return -ENODEV; |
1346 | } | 1346 | } |
1347 | 1347 | ||
1348 | static void __exit nvidiafb_remove(struct pci_dev *pd) | 1348 | static void __devexit nvidiafb_remove(struct pci_dev *pd) |
1349 | { | 1349 | { |
1350 | struct fb_info *info = pci_get_drvdata(pd); | 1350 | struct fb_info *info = pci_get_drvdata(pd); |
1351 | struct nvidia_par *par = info->par; | 1351 | struct nvidia_par *par = info->par; |
@@ -1431,7 +1431,7 @@ static struct pci_driver nvidiafb_driver = { | |||
1431 | .probe = nvidiafb_probe, | 1431 | .probe = nvidiafb_probe, |
1432 | .suspend = nvidiafb_suspend, | 1432 | .suspend = nvidiafb_suspend, |
1433 | .resume = nvidiafb_resume, | 1433 | .resume = nvidiafb_resume, |
1434 | .remove = __exit_p(nvidiafb_remove), | 1434 | .remove = __devexit_p(nvidiafb_remove), |
1435 | }; | 1435 | }; |
1436 | 1436 | ||
1437 | /* ------------------------------------------------------------------------- * | 1437 | /* ------------------------------------------------------------------------- * |