[PATCH] change __init to __devinit in 2 rtc drivers
authorPrarit Bhargava <[email protected]>
Mon, 12 Feb 2007 08:52:29 +0000 (00:52 -0800)
committerLinus Torvalds <[email protected]>
Mon, 12 Feb 2007 17:48:30 +0000 (09:48 -0800)
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 <[email protected]>
Cc: Alessandro Zummo <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
drivers/rtc/rtc-ds1553.c
drivers/rtc/rtc-ds1742.c

index 001eb1123a657707a581b0915ec919e435a95dd7..e27176c0e18fb0cd2ec6f11457d0f7c3ce4664ff 100644 (file)
@@ -297,7 +297,7 @@ static struct bin_attribute ds1553_nvram_attr = {
        .write = ds1553_nvram_write,
 };
 
-static int __init ds1553_rtc_probe(struct platform_device *pdev)
+static int __devinit ds1553_rtc_probe(struct platform_device *pdev)
 {
        struct rtc_device *rtc;
        struct resource *res;
index 17633bfa848028ba04970d22d05e59a236ed9081..d68288b389dc18b041c07060dac49da774da5df1 100644 (file)
@@ -165,7 +165,7 @@ static struct bin_attribute ds1742_nvram_attr = {
        .write = ds1742_nvram_write,
 };
 
-static int __init ds1742_rtc_probe(struct platform_device *pdev)
+static int __devinit ds1742_rtc_probe(struct platform_device *pdev)
 {
        struct rtc_device *rtc;
        struct resource *res;