diff options
author | Igor Opaniuk <igor.opaniuk@foundries.io> | 2021-02-23 00:11:12 +0200 |
---|---|---|
committer | Jun Nie <jun.nie@linaro.org> | 2021-03-07 13:01:20 +0800 |
commit | 325ebc3efaa70e33e09cc08b26151bd13e12d3ae (patch) | |
tree | 5e5cd3f0f5afc7eccef3397929b2ce302af8384c | |
parent | bb0b980818987f452817adf6b0f73bd0b4f396d9 (diff) |
[FIO internal] usb: xhci-imx8m: use CONFIG_IS_ENABLED for DM_USB checks
Use CONFIG_IS_ENABLED() macro, which provides more convenient
way to check $(SPL)DM_USB config for both SPL and U-Boot proper.
CONFIG_IS_ENABLED(DM_USB) expands to:
- 1 if CONFIG_SPL_BUILD is undefined and CONFIG_DM_USB is set to 'y',
- 1 if CONFIG_SPL_BUILD is defined and CONFIG_SPL_DM_USB is set to 'y',
- 0 otherwise.
Signed-off-by: Igor Opaniuk <igor.opaniuk@foundries.io>
-rw-r--r-- | drivers/usb/host/xhci-imx8m.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/host/xhci-imx8m.c b/drivers/usb/host/xhci-imx8m.c index c9c0c1b227..b1e167200e 100644 --- a/drivers/usb/host/xhci-imx8m.c +++ b/drivers/usb/host/xhci-imx8m.c @@ -137,7 +137,7 @@ static int imx8m_xhci_core_init(struct imx8m_xhci *imx8m_xhci) return ret; } -#ifdef CONFIG_DM_USB +#if CONFIG_IS_ENABLED(DM_USB) static int xhci_imx8m_probe(struct udevice *dev) { struct xhci_hccr *hccr; |