@@ -113,13 +113,6 @@ enum sys_off_mode {
*/
SYS_OFF_MODE_RESTART_PREPARE,
- /**
- * @SYS_OFF_MODE_RESTART:
- *
- * Handlers restart system. Handlers are disallowed to sleep.
- */
- SYS_OFF_MODE_RESTART,
-
/**
* @SYS_OFF_MODE_RESTART_COLD:
*
@@ -167,10 +160,6 @@ int devm_register_power_off_handler(struct device *dev,
int (*callback)(struct sys_off_data *data),
void *cb_data);
-int devm_register_restart_handler(struct device *dev,
- int (*callback)(struct sys_off_data *data),
- void *cb_data);
-
int devm_register_cold_restart_handler(struct device *dev,
int (*callback)(struct sys_off_data *data),
void *cb_data);
@@ -443,10 +443,6 @@ register_sys_off_handler(enum sys_off_mode mode,
handler->blocking = true;
break;
- case SYS_OFF_MODE_RESTART:
- handler->list = &warm_restart_handler_list;
- break;
-
case SYS_OFF_MODE_RESTART_COLD:
handler->list = &cold_restart_handler_list;
break;
@@ -576,28 +572,6 @@ int devm_register_power_off_handler(struct device *dev,
}
EXPORT_SYMBOL_GPL(devm_register_power_off_handler);
-/**
- * devm_register_restart_handler - Register restart handler
- * @dev: Device that registers callback
- * @callback: Callback function
- * @cb_data: Callback's argument
- *
- * Registers resource-managed sys-off handler with a default priority
- * and using restart mode.
- *
- * Returns zero on success, or error code on failure.
- */
-int devm_register_restart_handler(struct device *dev,
- int (*callback)(struct sys_off_data *data),
- void *cb_data)
-{
- return devm_register_sys_off_handler(dev,
- SYS_OFF_MODE_RESTART,
- SYS_OFF_PRIO_DEFAULT,
- callback, cb_data);
-}
-EXPORT_SYMBOL_GPL(devm_register_restart_handler);
-
/**
* devm_register_cold_restart_handler - Register cold restart handler
* @dev: Device that registers callback