spi: export the spi_register_board_info for ko [1/1]

PD#SWPL-9815

Problem:
spi_register_board_info's export has been removed in kernel 4.9,
but TV need to use it in ko.

Solution:
package it in a new dirspi_register_board_info and export

Verify:
T312

Change-Id: Ic7e5d8cef6840551e2925eda6162156320877833
Signed-off-by: Sunny Luo <sunny.luo@amlogic.com>
This commit is contained in:
Sunny Luo
2019-06-19 16:41:54 +08:00
committed by Luke Go
parent e69752f803
commit 61beb18a8f

View File

@@ -726,6 +726,12 @@ void dirspi_stop(struct spi_device *spi)
}
EXPORT_SYMBOL(dirspi_stop);
int dirspi_register_board_info(struct spi_board_info const *info,
unsigned int n)
{
return spi_register_board_info(info, n);
}
EXPORT_SYMBOL_GPL(dirspi_register_board_info);
/* setting clock and pinmux here */
static int spicc_setup(struct spi_device *spi)
@@ -1084,6 +1090,7 @@ static int of_spicc_get_data(
if (spicc->clk_rate) {
clk_set_rate(spicc->clk, spicc->clk_rate);
clk_prepare_enable(spicc->clk);
clk_prepare_enable(spicc->hclk);
}
if (spicc_get_flag(spicc, FLAG_ENHANCE)) {