[PATCH RFC 0/5] Deprecate register_restart_handler()

Andrew Davis afd at ti.com
Fri Nov 17 08:10:01 PST 2023


Hello all,

Explanation is in patch #1.

The rest of this series is a set of representative examples of converting
away from the old API. They should be valid and can be taken by their
respective maintainers even if patch #1 doesn't find acceptance.

Thanks,
Andrew

Andrew Davis (5):
  kernel/reboot: Deprecate register_restart_handler()
  drivers/soc/litex: Use devm_register_restart_handler()
  power: reset: gpio-restart: Use devm_register_sys_off_handler()
  spi: sprd: adi: Use devm_register_restart_handler()
  firmware: psci: Use register_sys_off_handler(SYS_OFF_MODE_RESTART)

 drivers/firmware/psci/psci.c       | 10 ++-------
 drivers/power/reset/gpio-restart.c | 34 ++++++++----------------------
 drivers/soc/litex/litex_soc_ctrl.c | 23 +++++---------------
 drivers/spi/spi-sprd-adi.c         | 30 +++++++-------------------
 include/linux/reboot.h             |  8 +++++--
 kernel/reboot.c                    |  3 +++
 6 files changed, 33 insertions(+), 75 deletions(-)

-- 
2.39.2




More information about the linux-arm-kernel mailing list