ipq6018: Move spi_clock_init function inside CONFIG_QCA_SPI

This change is necessary to fix the werror we get during
compilation after disabling SPI Flash.

Change-Id: Ica45e5d6d3cee1a67841f029322a84b6034d2195
Signed-off-by: Selvam Sathappan Periakaruppan <speriaka@codeaurora.org>
This commit is contained in:
Selvam Sathappan Periakaruppan 2019-12-24 00:11:34 +05:30
parent 8b0e6488a2
commit d7d23e8d8e

View file

@ -324,6 +324,7 @@ int board_mmc_init(bd_t *bis)
}
#endif
#ifdef CONFIG_QCA_SPI
static void spi_clock_init(void)
{
int cfg;
@ -340,6 +341,7 @@ static void spi_clock_init(void)
/* Configure CBCR */
writel(CLK_ENABLE, GCC_BLSP1_QUP1_SPI_APPS_CBCR);
}
#endif
void board_nand_init(void)
{