From: Jingoo Han Date: Mon, 29 Apr 2013 23:18:21 +0000 (-0700) Subject: rtc: rtc-mv: add __init annotation X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=b69af4373abe1e64274bc5217452fb14affb4ff7;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.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 Signed-off-by: Linus Torvalds --- 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;