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 <william.wu@rock-chips.com>
Change-Id: Ica505b973d1f4ebdc18d814a3992ab51999be980
This commit is contained in:
William Wu
2022-03-11 11:12:30 +08:00
committed by Tao Huang
parent f283539a10
commit 3e84aecb52

View File

@@ -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
},
{},
};