diff options
author | Axel Lin <axel.lin@ingics.com> | 2014-03-20 23:21:58 -0400 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2014-03-21 14:12:58 -0400 |
commit | bf2f2f7958388b2000736452fd7a126182ee69d0 (patch) | |
tree | 2b0a6f0f43d204f0b6b3f2d0ea3ca49c9e78712d | |
parent | 72bb79d042375586c4ad8def57d7932064d76090 (diff) |
spi: altera: Remove the code to get unused platform_data
The definition of struct altera_spi_platform_data does not exist in current
tree. So remove the code to get platform_data which is never used.
Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
-rw-r--r-- | drivers/spi/spi-altera.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/spi/spi-altera.c b/drivers/spi/spi-altera.c index aa33b56b7a92..09df64950234 100644 --- a/drivers/spi/spi-altera.c +++ b/drivers/spi/spi-altera.c | |||
@@ -200,7 +200,6 @@ static irqreturn_t altera_spi_irq(int irq, void *dev) | |||
200 | 200 | ||
201 | static int altera_spi_probe(struct platform_device *pdev) | 201 | static int altera_spi_probe(struct platform_device *pdev) |
202 | { | 202 | { |
203 | struct altera_spi_platform_data *platp = dev_get_platdata(&pdev->dev); | ||
204 | struct altera_spi *hw; | 203 | struct altera_spi *hw; |
205 | struct spi_master *master; | 204 | struct spi_master *master; |
206 | struct resource *res; | 205 | struct resource *res; |
@@ -215,6 +214,7 @@ static int altera_spi_probe(struct platform_device *pdev) | |||
215 | master->num_chipselect = 16; | 214 | master->num_chipselect = 16; |
216 | master->mode_bits = SPI_CS_HIGH; | 215 | master->mode_bits = SPI_CS_HIGH; |
217 | master->bits_per_word_mask = SPI_BPW_RANGE_MASK(1, 16); | 216 | master->bits_per_word_mask = SPI_BPW_RANGE_MASK(1, 16); |
217 | master->dev.of_node = pdev->dev.of_node; | ||
218 | 218 | ||
219 | hw = spi_master_get_devdata(master); | 219 | hw = spi_master_get_devdata(master); |
220 | platform_set_drvdata(pdev, hw); | 220 | platform_set_drvdata(pdev, hw); |
@@ -246,9 +246,6 @@ static int altera_spi_probe(struct platform_device *pdev) | |||
246 | if (err) | 246 | if (err) |
247 | goto exit; | 247 | goto exit; |
248 | } | 248 | } |
249 | /* find platform data */ | ||
250 | if (!platp) | ||
251 | hw->bitbang.master->dev.of_node = pdev->dev.of_node; | ||
252 | 249 | ||
253 | /* register our spi controller */ | 250 | /* register our spi controller */ |
254 | err = spi_bitbang_start(&hw->bitbang); | 251 | err = spi_bitbang_start(&hw->bitbang); |