diff options
Diffstat (limited to 'drivers/spi/spi-tle62x0.c')
-rw-r--r-- | drivers/spi/spi-tle62x0.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/spi/spi-tle62x0.c b/drivers/spi/spi-tle62x0.c index 6b0874d782ed..b5a70e3fecb7 100644 --- a/drivers/spi/spi-tle62x0.c +++ b/drivers/spi/spi-tle62x0.c | |||
@@ -247,7 +247,7 @@ static int tle62x0_probe(struct spi_device *spi) | |||
247 | int ptr; | 247 | int ptr; |
248 | int ret; | 248 | int ret; |
249 | 249 | ||
250 | pdata = spi->dev.platform_data; | 250 | pdata = dev_get_platdata(&spi->dev); |
251 | if (pdata == NULL) { | 251 | if (pdata == NULL) { |
252 | dev_err(&spi->dev, "no device data specified\n"); | 252 | dev_err(&spi->dev, "no device data specified\n"); |
253 | return -EINVAL; | 253 | return -EINVAL; |