Skip to content

Commit

Permalink
spi: dw: Remove unused dw_spi_cleanup function
Browse files Browse the repository at this point in the history
The dw_spi_cleanup() function was removed by commit c63f5da
"spi: dw: Don't call kfree for memory allocated by devm_kzalloc".

commit ec37e8e "spi: dw: migrate to generic queue infrastructure" added
dw_spi_cleanup() but never use it. So now I got below build warning:

  CC [M]  drivers/spi/spi-dw.o
drivers/spi/spi-dw.c:609:13: warning: 'dw_spi_cleanup' defined but not used [-Wunused-function]

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Acked-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: Mark Brown <broonie@linaro.org>
  • Loading branch information
Axel Lin authored and Mark Brown committed May 12, 2014
1 parent d9c73bb commit bf61fb8
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions drivers/spi/spi-dw.c
Original file line number Diff line number Diff line change
Expand Up @@ -606,12 +606,6 @@ static int dw_spi_setup(struct spi_device *spi)
return 0;
}

static void dw_spi_cleanup(struct spi_device *spi)
{
struct chip_data *chip = spi_get_ctldata(spi);
kfree(chip);
}

/* Restart the controller, disable all interrupts, clean rx fifo */
static void spi_hw_init(struct dw_spi *dws)
{
Expand Down

0 comments on commit bf61fb8

Please sign in to comment.