forked from luck/tmp_suning_uos_patched
properly __init-annotate pm_sysrq_init()
This is used only as argument to subsys_initcall(). Signed-off-by: Jan Beulich <jbeulich@suse.com> Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
This commit is contained in:
parent
4955070974
commit
bbdc18a3fb
|
@ -37,7 +37,7 @@ static struct sysrq_key_op sysrq_poweroff_op = {
|
||||||
.enable_mask = SYSRQ_ENABLE_BOOT,
|
.enable_mask = SYSRQ_ENABLE_BOOT,
|
||||||
};
|
};
|
||||||
|
|
||||||
static int pm_sysrq_init(void)
|
static int __init pm_sysrq_init(void)
|
||||||
{
|
{
|
||||||
register_sysrq_key('o', &sysrq_poweroff_op);
|
register_sysrq_key('o', &sysrq_poweroff_op);
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user