diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2014-10-24 00:41:45 +0200 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2014-11-24 07:44:03 +0100 |
commit | a54b8b0800f6fed5044bc6750ee757975a0ec35e (patch) | |
tree | 6a394daef972ff25e5d58af2651d923f8c03ea39 | |
parent | MIPS: Fix a copy & paste error in unistd.h (diff) | |
download | linux-a54b8b0800f6fed5044bc6750ee757975a0ec35e.tar.xz linux-a54b8b0800f6fed5044bc6750ee757975a0ec35e.zip |
MIPS: SEAD3: Fix LED device registration.
This isn't a module and shouldn't be one.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Cc: Markos Chandras <markos.chandras@imgtec.com>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/8202/
-rw-r--r-- | arch/mips/mti-sead3/sead3-leds.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/arch/mips/mti-sead3/sead3-leds.c b/arch/mips/mti-sead3/sead3-leds.c index 20102a6d4141..c427c5778186 100644 --- a/arch/mips/mti-sead3/sead3-leds.c +++ b/arch/mips/mti-sead3/sead3-leds.c @@ -5,7 +5,7 @@ * * Copyright (C) 2012 MIPS Technologies, Inc. All rights reserved. */ -#include <linux/module.h> +#include <linux/init.h> #include <linux/leds.h> #include <linux/platform_device.h> @@ -76,8 +76,4 @@ static int __init led_init(void) return platform_device_register(&fled_device); } -module_init(led_init); - -MODULE_AUTHOR("Chris Dearman <chris@mips.com>"); -MODULE_LICENSE("GPL"); -MODULE_DESCRIPTION("LED probe driver for SEAD-3"); +device_initcall(led_init); |