diff options
author | Jingoo Han <jg1.han@samsung.com> | 2013-04-29 19:18:21 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2013-04-29 21:28:20 -0400 |
commit | b69af4373abe1e64274bc5217452fb14affb4ff7 (patch) | |
tree | dc4633b7b32dff4f5264c633add59004b5f018f4 /drivers/rtc/rtc-mv.c | |
parent | ea676e846a8171b8e215627259f485a4e70328cb (diff) |
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 <jg1.han@samsung.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/rtc/rtc-mv.c')
-rw-r--r-- | drivers/rtc/rtc-mv.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 = { | |||
217 | .alarm_irq_enable = mv_rtc_alarm_irq_enable, | 217 | .alarm_irq_enable = mv_rtc_alarm_irq_enable, |
218 | }; | 218 | }; |
219 | 219 | ||
220 | static int mv_rtc_probe(struct platform_device *pdev) | 220 | static int __init mv_rtc_probe(struct platform_device *pdev) |
221 | { | 221 | { |
222 | struct resource *res; | 222 | struct resource *res; |
223 | struct rtc_plat_data *pdata; | 223 | struct rtc_plat_data *pdata; |