From 3e84aecb5275b40c48e33780a92a62849772c8a7 Mon Sep 17 00:00:00 2001 From: William Wu Date: Fri, 11 Mar 2022 11:12:30 +0800 Subject: [PATCH] usb: host: xhci-plat: build depends on ARCH_ROCKCHIP When build with rv1106_defconfig, and enable at least the following configs manually: CONFIG_USB_XHCI_HCD=y CONFIG_USB_XHCI_PLATFORM=y size drivers/usb/host/xhci-plat.o before: text data bss dec hex filename 5570 376 4 5950 173e drivers/usb/host/xhci-plat.o after: text data bss dec hex filename 2898 376 4 3278 cce drivers/usb/host/xhci-plat.o Signed-off-by: William Wu Change-Id: Ica505b973d1f4ebdc18d814a3992ab51999be980 --- drivers/usb/host/xhci-plat.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/usb/host/xhci-plat.c b/drivers/usb/host/xhci-plat.c index 6384c895d13f..882157f23857 100644 --- a/drivers/usb/host/xhci-plat.c +++ b/drivers/usb/host/xhci-plat.c @@ -142,6 +142,7 @@ static const struct of_device_id usb_xhci_of_match[] = { .compatible = "generic-xhci", }, { .compatible = "xhci-platform", +#ifndef CONFIG_ARCH_ROCKCHIP }, { .compatible = "marvell,armada-375-xhci", .data = &xhci_plat_marvell_armada, @@ -178,6 +179,7 @@ static const struct of_device_id usb_xhci_of_match[] = { }, { .compatible = "brcm,bcm7445-xhci", .data = &xhci_plat_brcm, +#endif }, {}, };