OSDN Git Service

HID: holtekff: move MODULE_* parameters out of #ifdef block
authorDaniel Axtens <dja@axtens.net>
Sun, 26 Nov 2017 04:34:04 +0000 (15:34 +1100)
committerJiri Kosina <jkosina@suse.cz>
Fri, 1 Dec 2017 08:31:36 +0000 (09:31 +0100)
commit56075f6072e7fdac302cff4e1b4c93b64ced99ab
tree4fe20845187dc4d6d3ea660f45e7540b763c19bf
parent542134c0375b5ca2b1d18490c02b8a20bfdd8d74
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>
drivers/hid/hid-holtekff.c