diff options
Diffstat (limited to 'drivers/regulator/fixed.c')
| -rw-r--r-- | drivers/regulator/fixed.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/regulator/fixed.c b/drivers/regulator/fixed.c index e5c03b534fae..7610920014d7 100644 --- a/drivers/regulator/fixed.c +++ b/drivers/regulator/fixed.c | |||
| @@ -146,7 +146,7 @@ static int reg_fixed_voltage_probe(struct platform_device *pdev) | |||
| 146 | if (IS_ERR(config)) | 146 | if (IS_ERR(config)) |
| 147 | return PTR_ERR(config); | 147 | return PTR_ERR(config); |
| 148 | } else { | 148 | } else { |
| 149 | config = pdev->dev.platform_data; | 149 | config = dev_get_platdata(&pdev->dev); |
| 150 | } | 150 | } |
| 151 | 151 | ||
| 152 | if (!config) | 152 | if (!config) |
