From: Jingoo Han Date: Tue, 26 Mar 2013 23:25:11 +0000 (+1100) Subject: rtc: rtc-mv: add __init annotation X-Git-Tag: next-20130404~3^2~277 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=7d8302ea4d8240d0cbfa0960134bbf9ef168557d;p=karo-tx-linux.git rtc: rtc-mv: add __init annotation When platform_driver_probe() is used, bind/unbind via sysfs is disabled. Thus, __init/__exit annotations can be added to probe()/remove(). Signed-off-by: Jingoo Han Signed-off-by: Andrew Morton --- diff --git a/drivers/rtc/rtc-mv.c b/drivers/rtc/rtc-mv.c index 8f87fec27ce7..d8e875e9a165 100644 --- a/drivers/rtc/rtc-mv.c +++ b/drivers/rtc/rtc-mv.c @@ -217,7 +217,7 @@ static const struct rtc_class_ops mv_rtc_alarm_ops = { .alarm_irq_enable = mv_rtc_alarm_irq_enable, }; -static int mv_rtc_probe(struct platform_device *pdev) +static int __init mv_rtc_probe(struct platform_device *pdev) { struct resource *res; struct rtc_plat_data *pdata;