On Sat, Mar 18, 2023 at 8:15 PM Dmitry Osipenko <dmitry.osipenko@xxxxxxxxxxxxx> wrote: > There are newer devm_register_power_off/restart_handler() helpers in > kernel [1]. Will be great if you'll use them in v2. Thanks! I will change my implementation to use devm_register_restart_handler() and update the current pm_power_off to devm_register_power_off_handler(). Best regards, Benjamin