aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/rtc
diff options
context:
space:
mode:
authorPrarit Bhargava <prarit@redhat.com>2007-02-12 03:52:29 -0500
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-02-12 12:48:30 -0500
commitc239122dec9230af80d0914ba23fefde80fdeffe (patch)
treef3817aba59c89a32c8270938d81fdb622680305e /drivers/rtc
parenteb5857084c8d27764b842025e4c805b174e40cad (diff)
[PATCH] change __init to __devinit in 2 rtc drivers
Change __init to __devinit in rtc drivers' probe functions. Resolves MODPOST warnings: WARNING: drivers/rtc/rtc-ds1553.o - Section mismatch: reference to .init.text:ds1553_rtc_probe from .data.rel between 'ds1553_rtc_driver' (at offset 0x0) and 'ds1553_nvram_attr' WARNING: drivers/rtc/rtc-ds1742.o - Section mismatch: reference to .init.text:ds1742_rtc_probe from .data.rel between 'ds1742_rtc_driver' (at offset 0x0) and 'ds1742_nvram_attr' Signed-off-by: Prarit Bhargava <prarit@redhat.com> Cc: Alessandro Zummo <a.zummo@towertech.it> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/rtc')
-rw-r--r--drivers/rtc/rtc-ds1553.c2
-rw-r--r--drivers/rtc/rtc-ds1742.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/drivers/rtc/rtc-ds1553.c b/drivers/rtc/rtc-ds1553.c
index 001eb1123a65..e27176c0e18f 100644
--- a/drivers/rtc/rtc-ds1553.c
+++ b/drivers/rtc/rtc-ds1553.c
@@ -297,7 +297,7 @@ static struct bin_attribute ds1553_nvram_attr = {
297 .write = ds1553_nvram_write, 297 .write = ds1553_nvram_write,
298}; 298};
299 299
300static int __init ds1553_rtc_probe(struct platform_device *pdev) 300static int __devinit ds1553_rtc_probe(struct platform_device *pdev)
301{ 301{
302 struct rtc_device *rtc; 302 struct rtc_device *rtc;
303 struct resource *res; 303 struct resource *res;
diff --git a/drivers/rtc/rtc-ds1742.c b/drivers/rtc/rtc-ds1742.c
index 17633bfa8480..d68288b389dc 100644
--- a/drivers/rtc/rtc-ds1742.c
+++ b/drivers/rtc/rtc-ds1742.c
@@ -165,7 +165,7 @@ static struct bin_attribute ds1742_nvram_attr = {
165 .write = ds1742_nvram_write, 165 .write = ds1742_nvram_write,
166}; 166};
167 167
168static int __init ds1742_rtc_probe(struct platform_device *pdev) 168static int __devinit ds1742_rtc_probe(struct platform_device *pdev)
169{ 169{
170 struct rtc_device *rtc; 170 struct rtc_device *rtc;
171 struct resource *res; 171 struct resource *res;