diff options
Diffstat (limited to 'drivers/regulator/virtual.c')
-rw-r--r-- | drivers/regulator/virtual.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/regulator/virtual.c b/drivers/regulator/virtual.c index a9d4284ea007..f53e78b9a84e 100644 --- a/drivers/regulator/virtual.c +++ b/drivers/regulator/virtual.c | |||
@@ -287,7 +287,7 @@ static const struct attribute_group regulator_virtual_attr_group = { | |||
287 | 287 | ||
288 | static int regulator_virtual_probe(struct platform_device *pdev) | 288 | static int regulator_virtual_probe(struct platform_device *pdev) |
289 | { | 289 | { |
290 | char *reg_id = pdev->dev.platform_data; | 290 | char *reg_id = dev_get_platdata(&pdev->dev); |
291 | struct virtual_consumer_data *drvdata; | 291 | struct virtual_consumer_data *drvdata; |
292 | int ret; | 292 | int ret; |
293 | 293 | ||