summaryrefslogtreecommitdiffstats
path: root/include/linux/rtc.h
diff options
context:
space:
mode:
authorJingoo Han2013-04-30 01:18:33 +0200
committerLinus Torvalds2013-04-30 03:28:22 +0200
commit6636a9944b9d3b6c4a0a27d5be5abc49ceca3381 (patch)
tree2a33f5f28b66ecb2169f720c5d8fdd3022133a05 /include/linux/rtc.h
parentdrivers/rtc/rtc-max77686.c: use dev_info()/dev_emerg() instead of pr_info()/p... (diff)
downloadkernel-qcow2-linux-6636a9944b9d3b6c4a0a27d5be5abc49ceca3381.tar.gz
kernel-qcow2-linux-6636a9944b9d3b6c4a0a27d5be5abc49ceca3381.tar.xz
kernel-qcow2-linux-6636a9944b9d3b6c4a0a27d5be5abc49ceca3381.zip
drivers/rtc/class.c: use struct device as the first argument for devm_rtc_device_register()
Other devm_* APIs use 'struct device *dev' as the first argument. Thus, in order to sync with other devm_* functions, struct device is used as the first argument for devm_rtc_device_register(). Signed-off-by: Jingoo Han <jg1.han@samsung.com> Cc: Tejun Heo <tj@kernel.org> Cc: Alessandro Zummo <a.zummo@towertech.it> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/linux/rtc.h')
-rw-r--r--include/linux/rtc.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/rtc.h b/include/linux/rtc.h
index d9557689bb8d..c2c28975293c 100644
--- a/include/linux/rtc.h
+++ b/include/linux/rtc.h
@@ -133,8 +133,8 @@ extern struct rtc_device *rtc_device_register(const char *name,
struct device *dev,
const struct rtc_class_ops *ops,
struct module *owner);
-extern struct rtc_device *devm_rtc_device_register(const char *name,
- struct device *dev,
+extern struct rtc_device *devm_rtc_device_register(struct device *dev,
+ const char *name,
const struct rtc_class_ops *ops,
struct module *owner);
extern void rtc_device_unregister(struct rtc_device *rtc);