From: Matthias Brugger Date: Fri, 10 Jul 2020 10:24:01 +0200 Subject: [PATCH] xhci: Only build xhci_reset_hw() if CONFIG_DM_USB is enabled In-Reply-To: <5e9068fa44ca2b11eaed5ee051a20dca50f90769.camel@suse.de> References: <20200629163725.13330-1-nsaenzjulienne@suse.de> <20200629163725.13330-5-nsaenzjulienne@suse.de> <8b0fe978-60aa-cb7e-17f3-2d54a3832a00@suse.com> <5e9068fa44ca2b11eaed5ee051a20dca50f90769.camel@suse.de> Message-ID: <4ad9f57d-234d-0239-3c09-0128fc539c71@suse.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 09/07/2020 19:31, Nicolas Saenz Julienne wrote: > This was breaking build on some configurations. > > Signed-off-by: Nicolas Saenz Julienne > --- > > Matthias, I don't know if it's possible at this stage, but I'd ideally squash > this into the offending patch. I'll test the patch and squash. Thanks! > > drivers/usb/host/xhci.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/drivers/usb/host/xhci.c b/drivers/usb/host/xhci.c > index e252964d0d..f635bb39f6 100644 > --- a/drivers/usb/host/xhci.c > +++ b/drivers/usb/host/xhci.c > @@ -190,6 +190,7 @@ static int xhci_start(struct xhci_hcor *hcor) > return ret; > } > > +#if CONFIG_IS_ENABLED(DM_USB) > /** > * Resets XHCI Hardware > * > @@ -218,6 +219,7 @@ static int xhci_reset_hw(struct xhci_ctrl *ctrl) > > return 0; > } > +#endif > > /** > * Resets the XHCI Controller >