diff options
author | Matthias Brugger <matthias.bgg@gmail.com> | 2013-03-26 05:27:35 -0400 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2013-03-26 10:03:33 -0400 |
commit | 5c725b34d438fdd3c528673a5f53f4b07f879c68 (patch) | |
tree | e77cb1f942f4f4839047072495e5e29d86967ed9 | |
parent | b66c7730027509620ced3c7ebc84e28f623ebe9a (diff) |
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>
-rw-r--r-- | drivers/spi/spi-s3c64xx.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/spi/spi-s3c64xx.c b/drivers/spi/spi-s3c64xx.c index e862ab8853aa..7f5f8ee68840 100644 --- a/drivers/spi/spi-s3c64xx.c +++ b/drivers/spi/spi-s3c64xx.c | |||
@@ -817,7 +817,6 @@ static int s3c64xx_spi_unprepare_transfer(struct spi_master *spi) | |||
817 | } | 817 | } |
818 | 818 | ||
819 | static struct s3c64xx_spi_csinfo *s3c64xx_get_slave_ctrldata( | 819 | static struct s3c64xx_spi_csinfo *s3c64xx_get_slave_ctrldata( |
820 | struct s3c64xx_spi_driver_data *sdd, | ||
821 | struct spi_device *spi) | 820 | struct spi_device *spi) |
822 | { | 821 | { |
823 | struct s3c64xx_spi_csinfo *cs; | 822 | struct s3c64xx_spi_csinfo *cs; |
@@ -874,7 +873,7 @@ static int s3c64xx_spi_setup(struct spi_device *spi) | |||
874 | 873 | ||
875 | sdd = spi_master_get_devdata(spi->master); | 874 | sdd = spi_master_get_devdata(spi->master); |
876 | if (!cs && spi->dev.of_node) { | 875 | if (!cs && spi->dev.of_node) { |
877 | cs = s3c64xx_get_slave_ctrldata(sdd, spi); | 876 | cs = s3c64xx_get_slave_ctrldata(spi); |
878 | spi->controller_data = cs; | 877 | spi->controller_data = cs; |
879 | } | 878 | } |
880 | 879 | ||