summaryrefslogtreecommitdiffstats
path: root/drivers/spi/spi-altera.c
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@ingics.com>2014-03-21 11:21:58 +0800
committerMark Brown <broonie@linaro.org>2014-03-21 18:12:58 +0000
commitbf2f2f7958388b2000736452fd7a126182ee69d0 (patch)
tree2b0a6f0f43d204f0b6b3f2d0ea3ca49c9e78712d /drivers/spi/spi-altera.c
parent72bb79d042375586c4ad8def57d7932064d76090 (diff)
downloadlinux-bf2f2f7958388b2000736452fd7a126182ee69d0.tar.bz2
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>
Diffstat (limited to 'drivers/spi/spi-altera.c')
-rw-r--r--drivers/spi/spi-altera.c5
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)
static int altera_spi_probe(struct platform_device *pdev)
{
- struct altera_spi_platform_data *platp = dev_get_platdata(&pdev->dev);
struct altera_spi *hw;
struct spi_master *master;
struct resource *res;
@@ -215,6 +214,7 @@ static int altera_spi_probe(struct platform_device *pdev)
master->num_chipselect = 16;
master->mode_bits = SPI_CS_HIGH;
master->bits_per_word_mask = SPI_BPW_RANGE_MASK(1, 16);
+ master->dev.of_node = pdev->dev.of_node;
hw = spi_master_get_devdata(master);
platform_set_drvdata(pdev, hw);
@@ -246,9 +246,6 @@ static int altera_spi_probe(struct platform_device *pdev)
if (err)
goto exit;
}
- /* find platform data */
- if (!platp)
- hw->bitbang.master->dev.of_node = pdev->dev.of_node;
/* register our spi controller */
err = spi_bitbang_start(&hw->bitbang);