mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 19:30:30 +09:00
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:
@@ -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
|
||||
},
|
||||
{},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user