Skip to content

Commit

Permalink
fb: hitfb: Balance probe/remove section annotations.
Browse files Browse the repository at this point in the history
hitfb presently has probe using __init whilst remove uses __devexit.
As this device can't possibly be hotplugged, switch to __exit and
__exit_p() instead.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
  • Loading branch information
Paul Mundt committed Mar 6, 2008
1 parent dd4f99b commit 0f8afa7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/video/hitfb.c
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,7 @@ static int __init hitfb_probe(struct platform_device *dev)
return 0;
}

static int __devexit hitfb_remove(struct platform_device *dev)
static int __exit hitfb_remove(struct platform_device *dev)
{
return unregister_framebuffer(&fb_info);
}
Expand Down Expand Up @@ -439,7 +439,7 @@ static int hitfb_resume(struct platform_device *dev)

static struct platform_driver hitfb_driver = {
.probe = hitfb_probe,
.remove = __devexit_p(hitfb_remove),
.remove = __exit_p(hitfb_remove),
#ifdef CONFIG_PM
.suspend = hitfb_suspend,
.resume = hitfb_resume,
Expand Down

0 comments on commit 0f8afa7

Please sign in to comment.