From: Dongwoo Date: Wed, 24 Oct 2018 05:40:26 +0000 (+0900) Subject: usb: dwc2: Move definition of ext_vbus_io X-Git-Tag: submit/tizen/20190129.052023~19 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0b15b6ce23ec1ab1334d2ac205d60b401cc0f8eb;p=profile%2Fcommon%2Fplatform%2Fkernel%2Flinux-artik7.git usb: dwc2: Move definition of ext_vbus_io 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 --- diff --git a/drivers/usb/dwc2/core.h b/drivers/usb/dwc2/core.h index faa9ce0fb946..e8285ab110c4 100644 --- a/drivers/usb/dwc2/core.h +++ b/drivers/usb/dwc2/core.h @@ -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;