topology: mark a function as __init to save some memory

'topology_sysfs_init()' is only called via 'device_initcall'.
It can be marked as __init to save a few bytes of memory.

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Link: https://lore.kernel.org/r/20200621081106.881915-1-christophe.jaillet@wanadoo.fr
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Christophe JAILLET 2020-06-21 10:11:06 +02:00 committed by Greg Kroah-Hartman
parent 55c7549819
commit 0d989da36b

View File

@ -133,7 +133,7 @@ static int topology_remove_dev(unsigned int cpu)
return 0;
}
static int topology_sysfs_init(void)
static int __init topology_sysfs_init(void)
{
return cpuhp_setup_state(CPUHP_TOPOLOGY_PREPARE,
"base/topology:prepare", topology_add_dev,