Commit c239122d authored by Prarit Bhargava's avatar Prarit Bhargava Committed by Linus Torvalds

[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: default avatarPrarit Bhargava <prarit@redhat.com>
Cc: Alessandro Zummo <a.zummo@towertech.it>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent eb585708
...@@ -297,7 +297,7 @@ static struct bin_attribute ds1553_nvram_attr = { ...@@ -297,7 +297,7 @@ static struct bin_attribute ds1553_nvram_attr = {
.write = ds1553_nvram_write, .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 rtc_device *rtc;
struct resource *res; struct resource *res;
......
...@@ -165,7 +165,7 @@ static struct bin_attribute ds1742_nvram_attr = { ...@@ -165,7 +165,7 @@ static struct bin_attribute ds1742_nvram_attr = {
.write = ds1742_nvram_write, .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 rtc_device *rtc;
struct resource *res; struct resource *res;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment