From: Amit Kucheria Date: Mon, 27 Jul 2009 09:03:19 +0000 (+0300) Subject: USB: musb: Refer to musb_otg_timer_func under correct #ifdef X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=3a9f5bd82dc986d496d8484ff54b107b4515f43f;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.git USB: musb: Refer to musb_otg_timer_func under correct #ifdef musb_otg_timer_func() is defined under #ifdef CONFIG_USB_MUSB_OTG. Make sure any reference to it is also under the same #ifdef. Without this fix, the driver failes to compile when USB_OTG is defined but USB_MUSB_OTG isn't. Signed-off-by: Amit Kucheria Cc: Felipe Balbi Cc: David Brownell Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/usb/musb/musb_core.c b/drivers/usb/musb/musb_core.c index 554a414f65d..642a4e25f7d 100644 --- a/drivers/usb/musb/musb_core.c +++ b/drivers/usb/musb/musb_core.c @@ -1990,7 +1990,7 @@ bad_config: if (status < 0) goto fail2; -#ifdef CONFIG_USB_OTG +#ifdef CONFIG_USB_MUSB_OTG setup_timer(&musb->otg_timer, musb_otg_timer_func, (unsigned long) musb); #endif