diff options
author | Paul Gortmaker <paul.gortmaker@windriver.com> | 2015-12-13 16:45:50 -0500 |
---|---|---|
committer | Jacek Anaszewski <j.anaszewski@samsung.com> | 2016-01-04 03:57:39 -0500 |
commit | 067a8f3cad97f7b7d21ea05cbd2289aaa0f259df (patch) | |
tree | 07fb0ce5ff4f787904864c82f98f0e148265c68b /drivers/leds | |
parent | 227a0ca17eadf339f489683ac2cf4eb33b2e5319 (diff) |
leds: ledtrig-ide-disk: Make the driver explicitly non-modular
The Kconfig for this driver is currently:
config LEDS_TRIGGER_IDE_DISK
bool "LED IDE Disk Trigger"
...meaning that it currently is not being built as a module by anyone.
Lets remove the modular code that is essentially orphaned, so that
when reading the driver there is no doubt it is builtin-only.
Since module_init translates to device_initcall in the non-modular
case, the init ordering remains unchanged with this commit.
We also delete the MODULE_LICENSE tag etc. since all that information
is already contained at the top of the file in the comments.
Cc: Bryan Wu <cooloney@gmail.com>
Cc: Richard Purdie <rpurdie@rpsys.net>
Cc: linux-leds@vger.kernel.org
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Signed-off-by: Jacek Anaszewski <j.anaszewski@samsung.com>
Diffstat (limited to 'drivers/leds')
-rw-r--r-- | drivers/leds/trigger/ledtrig-ide-disk.c | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/drivers/leds/trigger/ledtrig-ide-disk.c b/drivers/leds/trigger/ledtrig-ide-disk.c index 2cd7c0cf5924..c02a3ac3cd2b 100644 --- a/drivers/leds/trigger/ledtrig-ide-disk.c +++ b/drivers/leds/trigger/ledtrig-ide-disk.c | |||
@@ -11,7 +11,6 @@ | |||
11 | * | 11 | * |
12 | */ | 12 | */ |
13 | 13 | ||
14 | #include <linux/module.h> | ||
15 | #include <linux/kernel.h> | 14 | #include <linux/kernel.h> |
16 | #include <linux/init.h> | 15 | #include <linux/init.h> |
17 | #include <linux/leds.h> | 16 | #include <linux/leds.h> |
@@ -33,15 +32,4 @@ static int __init ledtrig_ide_init(void) | |||
33 | led_trigger_register_simple("ide-disk", &ledtrig_ide); | 32 | led_trigger_register_simple("ide-disk", &ledtrig_ide); |
34 | return 0; | 33 | return 0; |
35 | } | 34 | } |
36 | 35 | device_initcall(ledtrig_ide_init); | |
37 | static void __exit ledtrig_ide_exit(void) | ||
38 | { | ||
39 | led_trigger_unregister_simple(ledtrig_ide); | ||
40 | } | ||
41 | |||
42 | module_init(ledtrig_ide_init); | ||
43 | module_exit(ledtrig_ide_exit); | ||
44 | |||
45 | MODULE_AUTHOR("Richard Purdie <rpurdie@openedhand.com>"); | ||
46 | MODULE_DESCRIPTION("LED IDE Disk Activity Trigger"); | ||
47 | MODULE_LICENSE("GPL"); | ||