]> Git Repo - J-linux.git/commitdiff
MIPS: ralink: bootrom: mark a function as __init to save some memory
authorChristophe JAILLET <[email protected]>
Sun, 31 May 2020 10:06:03 +0000 (12:06 +0200)
committerThomas Bogendoerfer <[email protected]>
Sun, 31 May 2020 11:35:13 +0000 (13:35 +0200)
'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 <[email protected]>
Signed-off-by: Thomas Bogendoerfer <[email protected]>
arch/mips/ralink/bootrom.c

index 88bcce59beeb89e527d3064ac6f9595d03c17483..94ca8379b83c9031170817c10b489fb65cb90439 100644 (file)
@@ -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;
This page took 0.052489 seconds and 4 git commands to generate.