Skip to content

Commit

Permalink
[PATCH] change nvidiafb_remove to __devexit
Browse files Browse the repository at this point in the history
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 <[email protected]>
Acked-By: James Simmons <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
prarit authored and Linus Torvalds committed Feb 12, 2007
1 parent f5610b9 commit 5e14ab8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/video/nvidia/nvidia.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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),
};

/* ------------------------------------------------------------------------- *
Expand Down

0 comments on commit 5e14ab8

Please sign in to comment.