From: Christophe JAILLET Date: Sun, 31 May 2020 10:06:03 +0000 (+0200) Subject: MIPS: ralink: bootrom: mark a function as __init to save some memory X-Git-Tag: v5.10.7~2477^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=389500696810f5aa8fc1fe6f375b9dabd111e1d6;p=platform%2Fkernel%2Flinux-rpi.git MIPS: ralink: bootrom: mark a function as __init to save some memory 'bootrom_setup()' is only called via 'postcore_initcall'. It can be marked as __init to save a few bytes of memory. Signed-off-by: Christophe JAILLET Signed-off-by: Thomas Bogendoerfer --- diff --git a/arch/mips/ralink/bootrom.c b/arch/mips/ralink/bootrom.c index 88bcce5..94ca837 100644 --- a/arch/mips/ralink/bootrom.c +++ b/arch/mips/ralink/bootrom.c @@ -31,7 +31,7 @@ static const struct file_operations bootrom_file_ops = { .release = single_release, }; -static int bootrom_setup(void) +static int __init bootrom_setup(void) { debugfs_create_file("bootrom", 0444, NULL, NULL, &bootrom_file_ops); return 0;