summaryrefslogtreecommitdiffstats
path: root/arch/mips/ralink
diff options
context:
space:
mode:
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>2020-05-31 12:06:03 +0200
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>2020-05-31 13:35:13 +0200
commit389500696810f5aa8fc1fe6f375b9dabd111e1d6 (patch)
tree98c55daf874b3bc2105df36d6d114bb50eb16876 /arch/mips/ralink
parentdd25ed7361fb543d32f0da66e1e492563e64938e (diff)
downloadlinux-389500696810f5aa8fc1fe6f375b9dabd111e1d6.tar.gz
linux-389500696810f5aa8fc1fe6f375b9dabd111e1d6.tar.bz2
linux-389500696810f5aa8fc1fe6f375b9dabd111e1d6.zip
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 <christophe.jaillet@wanadoo.fr> Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Diffstat (limited to 'arch/mips/ralink')
-rw-r--r--arch/mips/ralink/bootrom.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/mips/ralink/bootrom.c b/arch/mips/ralink/bootrom.c
index 88bcce59beeb..94ca8379b83c 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;