Skip to content

Commit

Permalink
spi: altera: Remove the code to get unused platform_data
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Axel Lin authored and Mark Brown committed Mar 21, 2014
1 parent 72bb79d commit bf2f2f7
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions drivers/spi/spi-altera.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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);
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit bf2f2f7

Please sign in to comment.