usb: dwc2: Fix build in periphal-only mode
authorPhil Elwell <phil@raspberrypi.com>
Tue, 8 Jun 2021 12:00:49 +0000 (13:00 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 10 Jun 2021 11:39:26 +0000 (13:39 +0200)
commita4ed12f5edc41abbfe2bce4a215de2f6ff4993eb
tree41706a7516d81605e74da3f196da6055f276af91
parent3b713aafa7c928c53cdc08bc948373566762ce1c
usb: dwc2: Fix build in periphal-only mode

In branches to which 24d209dba5a3 ("usb: dwc2: Fix hibernation between
host and device modes.") has been back-ported, the bus_suspended member
of struct dwc2_hsotg is only present in builds that support host-mode.
To avoid having to pull in several more non-Fix commits in order to
get it to compile, wrap the usage of the member in a macro conditional.

Fixes: 24d209dba5a3 ("usb: dwc2: Fix hibernation between host and device modes.")
Signed-off-by: Phil Elwell <phil@raspberrypi.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/dwc2/core_intr.c