RTC: rtc-s3c: add __devexit and __devinit markers
Add the relevant __devinit and __devexit attributes to the rtc-s3c driver.
Signed-off-by Ben Dooks <[email protected]>
drivers/rtc/rtc-s3c.c +3 -3
@@ -383,7 +383,7 @@ static void s3c_rtc_enable(struct platfo } } -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);
@@ -400,7 +400,7 @@ static int s3c_rtc_remove(struct platforreturn 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;
@@ -513,7 +513,7 @@ static int s3c_rtc_resume(struct platforstatic 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 = {
Signature · 3 lines
Ben ([email protected], http://www.fluff.org/) 'a smiley only costs 4 bytes'
Alessandro Zummo
Acked-byQuoted 4 lines · On Sun, 20 Jul 2008 17:14:18 +0100 Ben Dooks <[email protected]> wrote:
Add the relevant
__devinitand__devexitattributes to the rtc-s3c driver.Signed-off-by Ben Dooks <[email protected]>
Acked-by Alessandro Zummo <[email protected]>
Signature · 6 lines
Best regards, Alessandro Zummo, Tower Technologies - Torino, Italy http://www.towertech.it