From aa00a46cb9f59d2db507ece82e2a5a402c2775d1 Mon Sep 17 00:00:00 2001 From: Jack Pham Date: Thu, 25 Feb 2016 18:53:05 -0800 Subject: 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 --- drivers/usb/gadget/function/f_diag.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'drivers/usb') 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"); -- cgit v1.2.3