summaryrefslogtreecommitdiff
path: root/src/drivers
diff options
context:
space:
mode:
authorFurquan Shaikh <furquan@chromium.org>2017-05-18 15:08:51 -0700
committerFurquan Shaikh <furquan@google.com>2017-05-24 04:43:46 +0200
commitdd8d24759d88cc5e3a82cdd471f15e1b079aa834 (patch)
tree7a77280b4cfb0aeae3217f6c692326f53d9716d3 /src/drivers
parent53bbf87a4c145d6394935f315b06ffc81c939b47 (diff)
downloadcoreboot-dd8d24759d88cc5e3a82cdd471f15e1b079aa834.tar.xz
drivers/spi/spi-generic: Make spi_setup_slave strong symbol
Now that all platforms are updated to provide spi bus map, there is no need to keep the spi_setup_slave as a weak symbol. BUG=b:38430839 Change-Id: I59b9bbb5303dad7ce062958a0ab8dee49a4ec1e0 Signed-off-by: Furquan Shaikh <furquan@chromium.org> Reviewed-on: https://review.coreboot.org/19781 Reviewed-by: Aaron Durbin <adurbin@chromium.org> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/drivers')
-rw-r--r--src/drivers/spi/spi-generic.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/drivers/spi/spi-generic.c b/src/drivers/spi/spi-generic.c
index 579ceb1df7..31a6bc3155 100644
--- a/src/drivers/spi/spi-generic.c
+++ b/src/drivers/spi/spi-generic.c
@@ -112,11 +112,7 @@ void __attribute__((weak)) spi_init(void)
/* Default weak implementation - do nothing. */
}
-const struct spi_ctrlr_buses spi_ctrlr_bus_map[0] __attribute__((weak));
-const size_t spi_ctrlr_bus_map_count __attribute__((weak));
-
-int __attribute__((weak)) spi_setup_slave(unsigned int bus, unsigned int cs,
- struct spi_slave *slave)
+int spi_setup_slave(unsigned int bus, unsigned int cs, struct spi_slave *slave)
{
size_t i;