Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Axel Lin and committed by
Mark Brown
bf2f2f79 72bb79d0

+1 -4
+1 -4
drivers/spi/spi-altera.c
··· 200 200 201 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 203 struct altera_spi *hw; 205 204 struct spi_master *master; 206 205 struct resource *res; ··· 214 215 master->num_chipselect = 16; 215 216 master->mode_bits = SPI_CS_HIGH; 216 217 master->bits_per_word_mask = SPI_BPW_RANGE_MASK(1, 16); 218 + master->dev.of_node = pdev->dev.of_node; 217 219 218 220 hw = spi_master_get_devdata(master); 219 221 platform_set_drvdata(pdev, hw); ··· 246 246 if (err) 247 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 250 /* register our spi controller */ 254 251 err = spi_bitbang_start(&hw->bitbang);