rtc: cmos: Call rtc_wake_setup() from cmos_do_probe()
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 9 Nov 2022 12:09:07 +0000 (13:09 +0100)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Tue, 15 Nov 2022 20:06:43 +0000 (21:06 +0100)
commit375bbba09692fe4c5218eddee8e312dd733fa846
tree76f14e9fe9175925fca47a6f5d2a842a7f84d13b
parent508ccdfb86b21da37ad091003a4d4567709d5dfb
rtc: cmos: Call rtc_wake_setup() from cmos_do_probe()

To reduce code duplication, move the invocation of rtc_wake_setup()
into cmos_do_probe() and simplify the callers of the latter.

No intentional functional impact.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Reviewed-by: Zhang Rui <rui.zhang@intel.com>
Tested-by: Zhang Rui <rui.zhang@intel.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/2143522.irdbgypaU6@kreacher
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
drivers/rtc/rtc-cmos.c