dvem_rtc_allocate_device
The interface has the following parameters.
- Syntax:
struct rtc_device *devm_rtc_allocate_device(struct device *dev)
- Description: The function is used to allocate an RTC
device with the
devm
method and then initialize it. - Parameter:
-
dev: The parent device to which the RTC device belongs.
-
- Return:
- Success: The pointer of the allocated RTC device.
- Failure: NULL.