: change __init to __devinit in 2 rtc drivers
PATCH 1/1 : 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 <[email protected]>
drivers/rtc/rtc-ds1742.c +1 -1
@@ -165,7 +165,7 @@ static struct bin_attribute ds1742_nvram .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;
drivers/rtc/rtc-ds1553.c +1 -1
@@ -297,7 +297,7 @@ static struct bin_attribute ds1553_nvram .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;