From: lyz Date: Thu, 12 Mar 2015 14:15:33 +0000 (+0800) Subject: usb: fix compliation warning without CONFIG_RK_DEBUG_UART X-Git-Tag: firefly_0821_release~4263^2~1 X-Git-Url: http://plrg.eecs.uci.edu/git/?p=firefly-linux-kernel-4.4.55.git;a=commitdiff_plain;h=67cdfe036986dd0fef52c56b4bd01595d47bebfa usb: fix compliation warning without CONFIG_RK_DEBUG_UART --- diff --git a/drivers/usb/dwc_otg_310/dwc_otg_driver.c b/drivers/usb/dwc_otg_310/dwc_otg_driver.c index 69f212720015..1aea7c3e88e1 100755 --- a/drivers/usb/dwc_otg_310/dwc_otg_driver.c +++ b/drivers/usb/dwc_otg_310/dwc_otg_driver.c @@ -77,8 +77,9 @@ extern void hcd_remove(struct platform_device *_dev); extern void dwc_otg_adp_start(dwc_otg_core_if_t *core_if, uint8_t is_host); - +#ifdef CONFIG_RK_USB_UART static u32 usb_to_uart_status; +#endif /*-------------------------------------------------------------------------*/ /* Encapsulate the module parameter settings */