diff options
author | Daniel Axtens <dja@axtens.net> | 2017-11-25 23:34:04 -0500 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2017-12-01 03:31:36 -0500 |
commit | 56075f6072e7fdac302cff4e1b4c93b64ced99ab (patch) | |
tree | 4fe20845187dc4d6d3ea660f45e7540b763c19bf | |
parent | 542134c0375b5ca2b1d18490c02b8a20bfdd8d74 (diff) |
HID: holtekff: move MODULE_* parameters out of #ifdef block
If you compile with:
CONFIG_HID_HOLTEK=m
CONFIG_HOLTEK_FF is not set
You get the following warning:
WARNING: modpost: missing MODULE_LICENSE() in drivers/hid/hid-holtekff.o
see include/linux/module.h for more information
Fix this by moving the module info out of the #ifdef CONFIG_HOLTEK_FF
block and into the un-guarded part of the file.
Signed-off-by: Daniel Axtens <dja@axtens.net>
Acked-by: Anssi Hannula <anssi.hannula@iki.fi>
Reviewed-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
-rw-r--r-- | drivers/hid/hid-holtekff.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/hid/hid-holtekff.c b/drivers/hid/hid-holtekff.c index 9325545fc3ae..edc0f64bb584 100644 --- a/drivers/hid/hid-holtekff.c +++ b/drivers/hid/hid-holtekff.c | |||
@@ -32,10 +32,6 @@ | |||
32 | 32 | ||
33 | #ifdef CONFIG_HOLTEK_FF | 33 | #ifdef CONFIG_HOLTEK_FF |
34 | 34 | ||
35 | MODULE_LICENSE("GPL"); | ||
36 | MODULE_AUTHOR("Anssi Hannula <anssi.hannula@iki.fi>"); | ||
37 | MODULE_DESCRIPTION("Force feedback support for Holtek On Line Grip based devices"); | ||
38 | |||
39 | /* | 35 | /* |
40 | * These commands and parameters are currently known: | 36 | * These commands and parameters are currently known: |
41 | * | 37 | * |
@@ -223,3 +219,7 @@ static struct hid_driver holtek_driver = { | |||
223 | .probe = holtek_probe, | 219 | .probe = holtek_probe, |
224 | }; | 220 | }; |
225 | module_hid_driver(holtek_driver); | 221 | module_hid_driver(holtek_driver); |
222 | |||
223 | MODULE_LICENSE("GPL"); | ||
224 | MODULE_AUTHOR("Anssi Hannula <anssi.hannula@iki.fi>"); | ||
225 | MODULE_DESCRIPTION("Force feedback support for Holtek On Line Grip based devices"); | ||