diff options
Diffstat (limited to 'drivers/hwmon/ads7828.c')
-rw-r--r-- | drivers/hwmon/ads7828.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hwmon/ads7828.c b/drivers/hwmon/ads7828.c index ba962ac4b81f..7092c78f814f 100644 --- a/drivers/hwmon/ads7828.c +++ b/drivers/hwmon/ads7828.c | |||
@@ -145,7 +145,7 @@ static int ads7828_remove(struct i2c_client *client) | |||
145 | static int ads7828_probe(struct i2c_client *client, | 145 | static int ads7828_probe(struct i2c_client *client, |
146 | const struct i2c_device_id *id) | 146 | const struct i2c_device_id *id) |
147 | { | 147 | { |
148 | struct ads7828_platform_data *pdata = client->dev.platform_data; | 148 | struct ads7828_platform_data *pdata = dev_get_platdata(&client->dev); |
149 | struct ads7828_data *data; | 149 | struct ads7828_data *data; |
150 | int err; | 150 | int err; |
151 | 151 | ||