(I'm so sorry!) Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git

tty: atmel: Replace SIMPLE_DEV_PM_OPS with DEFINE_SIMPLE_DEV_PM_OPS

Replace the deprecated SIMPLE_DEV_PM_OPS with DEFINE_SIMPLE_DEV_PM_OPS. This also drops the __maybe_unused annotations on the suspend/resume callbacks, since pm_sleep_ptr() inside the new macro already handles the case where CONFIG_PM_SLEEP is disabled. When CONFIG_PM=y but CONFIG_PM_SLEEP=n (a valid configuration that enables runtime PM but disables system suspend/hibernation), this keeps a completely empty dev_pm_ops structure -- all callbacks are NULL -- as dead code in the object file.Modify pm_ptr to pm_sleep_ptr. Signed-off-by: Li Jun <lijun01@kylinos.cn> Link: https://patch.msgid.link/20260908113719.4078979-1-lijun01@kylinos.cn Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>


Author Li Jun Committer Greg Kroah-Hartman Date Commit Parent d940e3d6
+4 -4
1 changed file
+4 -4
1 changed file