From 58ec68d67e6efe8682ca9cf4cf199c0f45445e23 Mon Sep 17 00:00:00 2001 From: speriaka Date: Fri, 17 Nov 2017 14:32:17 +0530 Subject: [PATCH] ipq807x: uboot: usb init: code clean up This patch involves changes which makes sure that usb init is done only when the config CONFIG_USB_XHCI_IPQ is defined. This change will allow us to disable or enable usb init as per our need in uboot. Change-Id: Icc0213470734856e763cddea747f17e3bc1ba51d Signed-off-by: speriaka --- board/qca/arm/ipq807x/ipq807x.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/board/qca/arm/ipq807x/ipq807x.c b/board/qca/arm/ipq807x/ipq807x.c index 43cccf8487..86dfbbcf12 100644 --- a/board/qca/arm/ipq807x/ipq807x.c +++ b/board/qca/arm/ipq807x/ipq807x.c @@ -583,6 +583,7 @@ void board_pci_deinit() } #endif +#ifdef CONFIG_USB_XHCI_IPQ void board_usb_deinit(int id) { void __iomem *boot_clk_ctl, *usb_bcr, *qusb2_phy_bcr; @@ -874,6 +875,7 @@ int ipq_board_usb_init(void) } return 0; } +#endif void ipq_fdt_fixup_socinfo(void *blob) {