Commit 5c725b34d438fdd3c528673a5f53f4b07f879c68

Authored by Matthias Brugger
Committed by Mark Brown
1 parent b66c773002

spi: spi-s3c64xx.c Remove unused argument.

The pointer to the driver data is never used to get the slave
controller data. We can delete the unused argument from the function.

Signed-off-by: Matthias Brugger <matthias.bgg@gmail.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>

Showing 1 changed file with 1 additions and 2 deletions Side-by-side Diff

drivers/spi/spi-s3c64xx.c
... ... @@ -817,7 +817,6 @@
817 817 }
818 818  
819 819 static struct s3c64xx_spi_csinfo *s3c64xx_get_slave_ctrldata(
820   - struct s3c64xx_spi_driver_data *sdd,
821 820 struct spi_device *spi)
822 821 {
823 822 struct s3c64xx_spi_csinfo *cs;
... ... @@ -874,7 +873,7 @@
874 873  
875 874 sdd = spi_master_get_devdata(spi->master);
876 875 if (!cs && spi->dev.of_node) {
877   - cs = s3c64xx_get_slave_ctrldata(sdd, spi);
  876 + cs = s3c64xx_get_slave_ctrldata(spi);
878 877 spi->controller_data = cs;
879 878 }
880 879