summaryrefslogtreecommitdiffstats
path: root/drivers/iio/dac/m62332.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/iio/dac/m62332.c')
-rw-r--r--drivers/iio/dac/m62332.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/iio/dac/m62332.c b/drivers/iio/dac/m62332.c
index ae53baccec91..3497513854d7 100644
--- a/drivers/iio/dac/m62332.c
+++ b/drivers/iio/dac/m62332.c
@@ -201,7 +201,7 @@ static int m62332_probe(struct i2c_client *client)
indio_dev->modes = INDIO_DIRECT_MODE;
indio_dev->info = &m62332_info;
- ret = iio_map_array_register(indio_dev, client->dev.platform_data);
+ ret = iio_map_array_register(indio_dev, dev_get_platdata(&client->dev));
if (ret < 0)
return ret;