[PATCH 1/2] usb: dwc3: core: Fix warnings when building without driver model

2022-04-19 Thread Alban Bedel
Commit f150b8d28b4e ("usb: dwc3: Enable undefined length INCR burst type") introduced code that assign the content of dwc->dev to a variable. But in u-boot the type of this field changes if building with driver model enabled or not. As this variable is then only used once just remove it and use the

[PATCH 1/2] usb: dwc3: core: fix warnings when building without driver model

2022-04-19 Thread Alban Bedel
Commit f150b8d28b4e ("usb: dwc3: Enable undefined length INCR burst type") introduced code that assign the content of dwc->dev to a variable. But in u-boot the type of this field changes if building with driver model enabled or not. As this variable is then only used once just remove it and use the

Re: [PATCH 1/2] usb: dwc3: core: Fix warnings when building without driver model

2022-04-19 Thread Michael Walle
Hi, +#if CONFIG_IS_ENABLED(DM_USB) static void dwc3_core_stop(struct dwc3 *dwc) will __maybe_unused work? -michael