diff options
-rw-r--r-- | drivers/rtc/class.c | 6 | ||||
-rw-r--r-- | include/linux/rtc.h | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/drivers/rtc/class.c b/drivers/rtc/class.c index b72b40bd7805..66385402d20e 100644 --- a/drivers/rtc/class.c +++ b/drivers/rtc/class.c | |||
@@ -275,8 +275,8 @@ static int devm_rtc_device_match(struct device *dev, void *res, void *data) | |||
275 | 275 | ||
276 | /** | 276 | /** |
277 | * devm_rtc_device_register - resource managed rtc_device_register() | 277 | * devm_rtc_device_register - resource managed rtc_device_register() |
278 | * @name: the name of the device | ||
279 | * @dev: the device to register | 278 | * @dev: the device to register |
279 | * @name: the name of the device | ||
280 | * @ops: the rtc operations structure | 280 | * @ops: the rtc operations structure |
281 | * @owner: the module owner | 281 | * @owner: the module owner |
282 | * | 282 | * |
@@ -287,8 +287,8 @@ static int devm_rtc_device_match(struct device *dev, void *res, void *data) | |||
287 | * for more information. | 287 | * for more information. |
288 | */ | 288 | */ |
289 | 289 | ||
290 | struct rtc_device *devm_rtc_device_register(const char *name, | 290 | struct rtc_device *devm_rtc_device_register(struct device *dev, |
291 | struct device *dev, | 291 | const char *name, |
292 | const struct rtc_class_ops *ops, | 292 | const struct rtc_class_ops *ops, |
293 | struct module *owner) | 293 | struct module *owner) |
294 | { | 294 | { |
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, | |||
133 | struct device *dev, | 133 | struct device *dev, |
134 | const struct rtc_class_ops *ops, | 134 | const struct rtc_class_ops *ops, |
135 | struct module *owner); | 135 | struct module *owner); |
136 | extern struct rtc_device *devm_rtc_device_register(const char *name, | 136 | extern struct rtc_device *devm_rtc_device_register(struct device *dev, |
137 | struct device *dev, | 137 | const char *name, |
138 | const struct rtc_class_ops *ops, | 138 | const struct rtc_class_ops *ops, |
139 | struct module *owner); | 139 | struct module *owner); |
140 | extern void rtc_device_unregister(struct rtc_device *rtc); | 140 | extern void rtc_device_unregister(struct rtc_device *rtc); |