diff options
Diffstat (limited to 'drivers/hwmon/max197.c')
-rw-r--r-- | drivers/hwmon/max197.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hwmon/max197.c b/drivers/hwmon/max197.c index b5ebb9198c75..96dccaf919d1 100644 --- a/drivers/hwmon/max197.c +++ b/drivers/hwmon/max197.c | |||
@@ -261,7 +261,7 @@ static int max197_probe(struct platform_device *pdev) | |||
261 | { | 261 | { |
262 | int ch, ret; | 262 | int ch, ret; |
263 | struct max197_data *data; | 263 | struct max197_data *data; |
264 | struct max197_platform_data *pdata = pdev->dev.platform_data; | 264 | struct max197_platform_data *pdata = dev_get_platdata(&pdev->dev); |
265 | enum max197_chips chip = platform_get_device_id(pdev)->driver_data; | 265 | enum max197_chips chip = platform_get_device_id(pdev)->driver_data; |
266 | 266 | ||
267 | if (pdata == NULL) { | 267 | if (pdata == NULL) { |