rtc: tegra: Replace deprecated SIMPLE_DEV_PM_OPS
authorKartik Rajput <kkartik@nvidia.com>
Fri, 24 Oct 2025 06:49:52 +0000 (12:19 +0530)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Mon, 8 Dec 2025 21:26:42 +0000 (22:26 +0100)
commitbf5ef3ce42da98c59d820dfdd9513ff210622f32
tree6ac5b5d168b14c86156912fb06d4ab7eddc7f0b3
parent0a293451030b4ad69026b77c7d6b6bdf5cafd7e4
rtc: tegra: Replace deprecated SIMPLE_DEV_PM_OPS

Replace deprecated SIMPLE_DEV_PM_OPS with DEFINE_SIMPLE_DEV_PM_OPS macro
and use pm_sleep_ptr() to initialize pm_ops. This also allows us to drop
the checks for CONFIG_PM_SLEEP.

Suggested-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Kartik Rajput <kkartik@nvidia.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Jon Hunter <jonathanh@nvidia.com>
Link: https://patch.msgid.link/20251024064952.775883-3-kkartik@nvidia.com
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
drivers/rtc/rtc-tegra.c