usb: dwc2: Move definition of ext_vbus_io
authorDongwoo <dwoo08.lee@samsung.com>
Wed, 24 Oct 2018 05:40:26 +0000 (14:40 +0900)
committerJaehoon Chung <jh80.chung@samsung.com>
Tue, 29 Jan 2019 02:25:39 +0000 (11:25 +0900)
There are build errors on ext_vbus_io when the operational mode is
set to gadget only mode because it doesn't included by conditional
macro. In order to make including ext_vbus_io member for all
operational mode, this patch moves ext_vbus_io out of macro section.

Change-Id: Ib9a70c2a27cd6afd9969de422f3cbcbe80a2751d
Signed-off-by: Dongwoo <dwoo08.lee@samsung.com>
drivers/usb/dwc2/core.h

index faa9ce0fb9461b7e8c44b99fd30024d7da7b22d3..e8285ab110c43f0d9b6b2911480e1c3e1300c022 100644 (file)
@@ -844,9 +844,10 @@ struct dwc2_hsotg {
        u32 hfnum_other_samples_b;
        u64 hfnum_other_frrem_accum_b;
 #endif
-       u32 ext_vbus_io;
 #endif /* CONFIG_USB_DWC2_HOST || CONFIG_USB_DWC2_DUAL_ROLE */
 
+       u32 ext_vbus_io;
+
 #if IS_ENABLED(CONFIG_USB_DWC2_PERIPHERAL) || IS_ENABLED(CONFIG_USB_DWC2_DUAL_ROLE)
        /* Gadget structures */
        struct usb_gadget_driver *driver;