summaryrefslogtreecommitdiffstats
path: root/arch/sparc/kernel/led.c
diff options
context:
space:
mode:
authorRussell King (Oracle) <rmk+kernel@armlinux.org.uk>2022-04-01 17:12:31 +0200
committerRussell King (Oracle) <rmk+kernel@armlinux.org.uk>2022-04-01 17:12:31 +0200
commitde4fb176622d54a82ea3ceb7362392aaf5ff0b5a (patch)
tree8b510763d14d89b97cd719e79834c84e095932d7 /arch/sparc/kernel/led.c
parentARM: 9191/1: arm/stacktrace, kasan: Silence KASAN warnings in unwind_frame() (diff)
parentARM: 9189/1: decompressor: fix unneeded rebuilds of library objects (diff)
downloadlinux-de4fb176622d54a82ea3ceb7362392aaf5ff0b5a.tar.xz
linux-de4fb176622d54a82ea3ceb7362392aaf5ff0b5a.zip
Merge branches 'fixes' and 'misc' into for-linus
Diffstat (limited to 'arch/sparc/kernel/led.c')
-rw-r--r--arch/sparc/kernel/led.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/arch/sparc/kernel/led.c b/arch/sparc/kernel/led.c
index 3a66e62eb2a0..ab657b359789 100644
--- a/arch/sparc/kernel/led.c
+++ b/arch/sparc/kernel/led.c
@@ -114,18 +114,16 @@ static const struct proc_ops led_proc_ops = {
};
#endif
-static struct proc_dir_entry *led;
-
#define LED_VERSION "0.1"
static int __init led_init(void)
{
timer_setup(&led_blink_timer, led_blink, 0);
- led = proc_create("led", 0, NULL, &led_proc_ops);
- if (!led)
+#ifdef CONFIG_PROC_FS
+ if (!proc_create("led", 0, NULL, &led_proc_ops))
return -ENOMEM;
-
+#endif
printk(KERN_INFO
"led: version %s, Lars Kotthoff <metalhead@metalhead.ws>\n",
LED_VERSION);