diff options
author | Sven Schwermer <sven@svenschwermer.de> | 2018-11-21 08:43:56 +0100 |
---|---|---|
committer | Marek Vasut <marex@denx.de> | 2018-11-26 21:19:03 +0100 |
commit | fd09c205fc57b90a782cac33449ef172575d0a8c (patch) | |
tree | b23d462a78db88ec589c50d769fa6522b3f16c63 /drivers/usb/host/xhci-fsl.c | |
parent | ab5817027f9b4fce25f5f2a3e20577ac55bbd7e0 (diff) |
usb: s/CONFIG_DM_USB/CONFIG_IS_ENABLED(DM_USB)/
This allows to disable the USB driver model in SPL because it checks
the CONFIG_SPL_DM_USB variable for SPL builds. Nothing changes for
regular non-SPL builds.
Signed-off-by: Sven Schwermer <sven@svenschwermer.de>
Diffstat (limited to 'drivers/usb/host/xhci-fsl.c')
-rw-r--r-- | drivers/usb/host/xhci-fsl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/usb/host/xhci-fsl.c b/drivers/usb/host/xhci-fsl.c index 047a8dfdef..c0b98a8ec7 100644 --- a/drivers/usb/host/xhci-fsl.c +++ b/drivers/usb/host/xhci-fsl.c @@ -19,7 +19,7 @@ #include <dm.h> /* Declare global data pointer */ -#ifndef CONFIG_DM_USB +#if !CONFIG_IS_ENABLED(DM_USB) static struct fsl_xhci fsl_xhci; unsigned long ctr_addr[] = FSL_USB_XHCI_ADDR; #else @@ -107,7 +107,7 @@ static int fsl_xhci_core_exit(struct fsl_xhci *fsl_xhci) return 0; } -#ifdef CONFIG_DM_USB +#if CONFIG_IS_ENABLED(DM_USB) static int xhci_fsl_probe(struct udevice *dev) { struct xhci_fsl_priv *priv = dev_get_priv(dev); |