summaryrefslogtreecommitdiffstats
path: root/drivers/staging/iio/frequency/ad9832.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/staging/iio/frequency/ad9832.c')
-rw-r--r--drivers/staging/iio/frequency/ad9832.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/iio/frequency/ad9832.c b/drivers/staging/iio/frequency/ad9832.c
index 2b65faa6296a..18b27a1984b2 100644
--- a/drivers/staging/iio/frequency/ad9832.c
+++ b/drivers/staging/iio/frequency/ad9832.c
@@ -201,7 +201,7 @@ static const struct iio_info ad9832_info = {
static int ad9832_probe(struct spi_device *spi)
{
- struct ad9832_platform_data *pdata = spi->dev.platform_data;
+ struct ad9832_platform_data *pdata = dev_get_platdata(&spi->dev);
struct iio_dev *indio_dev;
struct ad9832_state *st;
struct regulator *reg;