Skip to content

Commit

Permalink
[WATCHDOG] wm8350: Fix section annotations
Browse files Browse the repository at this point in the history
The probe and remove functions were incorrectly annotated, with the
misannotation of the remove function causing build failures when built
in.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
  • Loading branch information
broonie authored and Wim Van Sebroeck committed Jan 12, 2009
1 parent ae04d14 commit b1cf3e9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions drivers/watchdog/wm8350_wdt.c
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ static struct miscdevice wm8350_wdt_miscdev = {
.fops = &wm8350_wdt_fops,
};

static int wm8350_wdt_probe(struct platform_device *pdev)
static int __devinit wm8350_wdt_probe(struct platform_device *pdev)
{
struct wm8350 *wm8350 = platform_get_drvdata(pdev);

Expand All @@ -296,7 +296,7 @@ static int wm8350_wdt_probe(struct platform_device *pdev)
return misc_register(&wm8350_wdt_miscdev);
}

static int __exit wm8350_wdt_remove(struct platform_device *pdev)
static int __devexit wm8350_wdt_remove(struct platform_device *pdev)
{
misc_deregister(&wm8350_wdt_miscdev);

Expand All @@ -305,7 +305,7 @@ static int __exit wm8350_wdt_remove(struct platform_device *pdev)

static struct platform_driver wm8350_wdt_driver = {
.probe = wm8350_wdt_probe,
.remove = wm8350_wdt_remove,
.remove = __devexit_p(wm8350_wdt_remove),
.driver = {
.name = "wm8350-wdt",
},
Expand Down

0 comments on commit b1cf3e9

Please sign in to comment.