dvem_rtc_device_register
The interface has the following parameters.
- Syntax:
struct rtc_device *devm_rtc_device_register(struct device *dev, const char *name, const struct rtc_class_ops *ops, struct module *owner)
- Description: The function is used to re-allocate an RTC device and then register it.
- Parameter:
-
dev: The parent device to which the RTC device belongs.
-
name: Not used.
-
ops: The operation function of the RTC device.
-
owner: The module to which the RTC device belongs.
-
- Return:
- Success: The pointer of the allocated RTC device.
- Failure: Error code.