Skip to content
Snippets Groups Projects
Commit 0d42c0dd authored by YueHaibing's avatar YueHaibing Committed by Greg Kroah-Hartman
Browse files

fpga-manager: altera-ps-spi: Fix build error


commit 3d139703 upstream.

If BITREVERSE is m and FPGA_MGR_ALTERA_PS_SPI is y,
build fails:

drivers/fpga/altera-ps-spi.o: In function `altera_ps_write':
altera-ps-spi.c:(.text+0x4ec): undefined reference to `byte_rev_table'

Select BITREVERSE to fix this.

Reported-by: default avatarHulk Robot <hulkci@huawei.com>
Fixes: fcfe18f8 ("fpga-manager: altera-ps-spi: use bitrev8x4")
Signed-off-by: default avatarYueHaibing <yuehaibing@huawei.com>
Cc: stable <stable@vger.kernel.org>
Acked-by: default avatarMoritz Fischer <mdf@kernel.org>
Link: https://lore.kernel.org/r/20190708071356.50928-1-yuehaibing@huawei.com


Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 74402b5c
No related branches found
No related tags found
No related merge requests found
...@@ -34,6 +34,7 @@ config FPGA_MGR_ALTERA_CVP ...@@ -34,6 +34,7 @@ config FPGA_MGR_ALTERA_CVP
config FPGA_MGR_ALTERA_PS_SPI config FPGA_MGR_ALTERA_PS_SPI
tristate "Altera FPGA Passive Serial over SPI" tristate "Altera FPGA Passive Serial over SPI"
depends on SPI depends on SPI
select BITREVERSE
help help
FPGA manager driver support for Altera Arria/Cyclone/Stratix FPGA manager driver support for Altera Arria/Cyclone/Stratix
using the passive serial interface over SPI. using the passive serial interface over SPI.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment