Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

spi: dw: Remove unused dw_spi_cleanup function

The dw_spi_cleanup() function was removed by commit c63f5da00845
"spi: dw: Don't call kfree for memory allocated by devm_kzalloc".

commit ec37e8e1f0e3 "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>

authored by

Axel Lin and committed by
Mark Brown
bf61fb80 d9c73bb8

-6
-6
drivers/spi/spi-dw.c
··· 606 606 return 0; 607 607 } 608 608 609 - static void dw_spi_cleanup(struct spi_device *spi) 610 - { 611 - struct chip_data *chip = spi_get_ctldata(spi); 612 - kfree(chip); 613 - } 614 - 615 609 /* Restart the controller, disable all interrupts, clean rx fifo */ 616 610 static void spi_hw_init(struct dw_spi *dws) 617 611 {