summaryrefslogtreecommitdiffstats
path: root/drivers/spi/spi-tle62x0.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/spi/spi-tle62x0.c')
-rw-r--r--drivers/spi/spi-tle62x0.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/spi/spi-tle62x0.c b/drivers/spi/spi-tle62x0.c
index 6b0874d782e..b5a70e3fecb 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)
int ptr;
int ret;
- pdata = spi->dev.platform_data;
+ pdata = dev_get_platdata(&spi->dev);
if (pdata == NULL) {
dev_err(&spi->dev, "no device data specified\n");
return -EINVAL;