diff options
author | Rafael J. Wysocki <[email protected]> | 2022-11-09 13:07:08 +0100 |
---|---|---|
committer | Alexandre Belloni <[email protected]> | 2022-11-15 21:06:34 +0100 |
commit | 508ccdfb86b21da37ad091003a4d4567709d5dfb (patch) | |
tree | 7d3594a34e859bd280537f60cd46a59270ab926a /scripts/generate_rust_analyzer.py | |
parent | 60da73808298ff2cfa9f165d55eb3d7aa7078601 (diff) |
rtc: cmos: Call cmos_wake_setup() from cmos_do_probe()
Notice that cmos_wake_setup() is the only user of acpi_rtc_info and it
can operate on the cmos_rtc variable directly, so it need not set the
platform_data pointer before cmos_do_probe() is called. Instead, it
can be called by cmos_do_probe() in the case when the platform_data
pointer is not set to implement the default behavior (which is to use
the FADT information as long as ACPI support is enabled).
Modify the code accordingly.
While at it, drop a comment that doesn't really match the code it is
supposed to be describing.
Signed-off-by: Rafael J. Wysocki <[email protected]>
Reviewed-by: Zhang Rui <[email protected]>
Tested-by: Zhang Rui <[email protected]>
Reviewed-by: Andy Shevchenko <[email protected]>
Link: https://lore.kernel.org/r/4803444.31r3eYUQgx@kreacher
Signed-off-by: Alexandre Belloni <[email protected]>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions