public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* RTC: rtc-s3c: add __devexit and __devinit markers
@ 2008-07-20 16:14 Ben Dooks
  2008-07-20 20:36 ` Alessandro Zummo
  0 siblings, 1 reply; 2+ messages in thread
From: Ben Dooks @ 2008-07-20 16:14 UTC (permalink / raw)
  To: a.zummo, linux-kernel; +Cc: Ben Dooks

[-- Attachment #1: simtec/simtec-s3c24xx-rtc-devattr.patch --]
[-- Type: text/plain, Size: 1280 bytes --]

Add the relevant __devinit and __devexit attributes to
the rtc-s3c driver.

Signed-off-by: Ben Dooks <ben-linux@fluff.org>

Index: linux-2.6.26-quilt3/drivers/rtc/rtc-s3c.c
===================================================================
--- linux-2.6.26-quilt3.orig/drivers/rtc/rtc-s3c.c	2008-07-20 17:08:20.000000000 +0100
+++ linux-2.6.26-quilt3/drivers/rtc/rtc-s3c.c	2008-07-20 17:09:00.000000000 +0100
@@ -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 platfor
 	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;
@@ -513,7 +513,7 @@ static int s3c_rtc_resume(struct platfor
 
 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		= {

-- 
Ben (ben@fluff.org, http://www.fluff.org/)

  'a smiley only costs 4 bytes'

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: RTC: rtc-s3c: add __devexit and __devinit markers
  2008-07-20 16:14 RTC: rtc-s3c: add __devexit and __devinit markers Ben Dooks
@ 2008-07-20 20:36 ` Alessandro Zummo
  0 siblings, 0 replies; 2+ messages in thread
From: Alessandro Zummo @ 2008-07-20 20:36 UTC (permalink / raw)
  To: Ben Dooks; +Cc: akpm, linux-kernel

On Sun, 20 Jul 2008 17:14:18 +0100
Ben Dooks <ben-linux@fluff.org> wrote:

> 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>

-- 

 Best regards,

 Alessandro Zummo,
  Tower Technologies - Torino, Italy

  http://www.towertech.it


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-07-20 20:36 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-20 16:14 RTC: rtc-s3c: add __devexit and __devinit markers Ben Dooks
2008-07-20 20:36 ` Alessandro Zummo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox