diff options
| author | Jack Pham <jackp@codeaurora.org> | 2016-02-25 18:53:05 -0800 |
|---|---|---|
| committer | David Keitel <dkeitel@codeaurora.org> | 2016-03-23 20:58:07 -0700 |
| commit | aa00a46cb9f59d2db507ece82e2a5a402c2775d1 (patch) | |
| tree | 51b891a89dda9c958b8795604881755f96408999 /drivers/usb | |
| parent | adf10d10e855b5096684dffd1d7225ce89c60518 (diff) | |
usb: diag: Fix build error if CONFIG_USB_F_DIAG=m
Instead of #ifdef, use the IS_ENABLED() macro which correctly
handles if the Kconfig symbol is built-in (=y) or a module (=m).
Also add missing MODULE_LICENSE and MODULE_DESCRIPTION to
f_diag.c to allow building as a module.
Signed-off-by: Jack Pham <jackp@codeaurora.org>
Diffstat (limited to 'drivers/usb')
| -rw-r--r-- | drivers/usb/gadget/function/f_diag.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/usb/gadget/function/f_diag.c b/drivers/usb/gadget/function/f_diag.c index 4210f77a6245..c884ae19be1e 100644 --- a/drivers/usb/gadget/function/f_diag.c +++ b/drivers/usb/gadget/function/f_diag.c @@ -1090,3 +1090,6 @@ static void __exit diag_exit(void) module_init(diag_init); module_exit(diag_exit); + +MODULE_DESCRIPTION("Diag function driver"); +MODULE_LICENSE("GPL v2"); |
