From 5f3aca39d33183ff7d74116e6d2ef2b164fdea23 Mon Sep 17 00:00:00 2001 From: Stefan Reinauer Date: Wed, 6 Jun 2012 13:40:12 -0700 Subject: SPI flash layer: remove unused function spi_flash_free() We don't ever free memory in coreboot, hence drop spi_flash_free() and spi_free_slave() Change-Id: I0ca3f78574ceb4516e7d33c06ab1a58abfb3b0ec Signed-off-by: Stefan Reinauer Reviewed-on: http://review.coreboot.org/1273 Tested-by: build bot (Jenkins) Reviewed-by: Ronald G. Minnich --- src/southbridge/intel/bd82x6x/spi.c | 6 ------ 1 file changed, 6 deletions(-) (limited to 'src/southbridge/intel/bd82x6x/spi.c') diff --git a/src/southbridge/intel/bd82x6x/spi.c b/src/southbridge/intel/bd82x6x/spi.c index ccc530d884..4cd9af037c 100644 --- a/src/southbridge/intel/bd82x6x/spi.c +++ b/src/southbridge/intel/bd82x6x/spi.c @@ -280,12 +280,6 @@ struct spi_slave *spi_setup_slave(unsigned int bus, unsigned int cs, return slave; } -void spi_free_slave(struct spi_slave *_slave) -{ - ich_spi_slave *slave = (ich_spi_slave *)_slave; - free(slave); -} - /* * Check if this device ID matches one of supported Intel PCH devices. * -- cgit v1.2.3