From: Jingoo Han Date: Wed, 20 Mar 2013 04:07:50 +0000 (+1100) Subject: rtc: rtc-mv: add __init annotation X-Git-Tag: next-20130320~2^2~261 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=f902f2d312f19599b485c4471fdc27d98ca76b58;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;