Skip to content

Commit

Permalink
rtc: rtc-s3c: add __devexit and __devinit markers
Browse files Browse the repository at this point in the history
Add the relevant __devinit and __devexit attributes to the rtc-s3c driver.

Signed-off-by: Ben Dooks <ben-linux@fluff.org>
Acked-by: Alessandro Zummo <a.zummo@towertech.it>
Cc: David Brownell <david-b@pacbell.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Ben Dooks authored and Linus Torvalds committed Jul 24, 2008
1 parent 35d3fdd commit 4cd0c5c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions drivers/rtc/rtc-s3c.c
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,7 @@ static void s3c_rtc_enable(struct platform_device *pdev, int en)
}
}

static int s3c_rtc_remove(struct platform_device *dev)
static int __devexit s3c_rtc_remove(struct platform_device *dev)
{
struct rtc_device *rtc = platform_get_drvdata(dev);

Expand All @@ -447,7 +447,7 @@ static int s3c_rtc_remove(struct platform_device *dev)
return 0;
}

static int s3c_rtc_probe(struct platform_device *pdev)
static int __devinit s3c_rtc_probe(struct platform_device *pdev)
{
struct rtc_device *rtc;
struct resource *res;
Expand Down Expand Up @@ -560,7 +560,7 @@ static int s3c_rtc_resume(struct platform_device *pdev)

static struct platform_driver s3c2410_rtcdrv = {
.probe = s3c_rtc_probe,
.remove = s3c_rtc_remove,
.remove = __devexit_p(s3c_rtc_remove),
.suspend = s3c_rtc_suspend,
.resume = s3c_rtc_resume,
.driver = {
Expand Down

0 comments on commit 4cd0c5c

Please sign in to comment.