diff options
Diffstat (limited to 'drivers/regulator/pcap-regulator.c')
-rw-r--r-- | drivers/regulator/pcap-regulator.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/regulator/pcap-regulator.c b/drivers/regulator/pcap-regulator.c index 137b455ecb44..33d7d899e030 100644 --- a/drivers/regulator/pcap-regulator.c +++ b/drivers/regulator/pcap-regulator.c | |||
@@ -271,7 +271,7 @@ static struct regulator_desc pcap_regulators[] = { | |||
271 | static int __devinit pcap_regulator_probe(struct platform_device *pdev) | 271 | static int __devinit pcap_regulator_probe(struct platform_device *pdev) |
272 | { | 272 | { |
273 | struct regulator_dev *rdev; | 273 | struct regulator_dev *rdev; |
274 | void *pcap = platform_get_drvdata(pdev); | 274 | void *pcap = dev_get_drvdata(pdev->dev.parent); |
275 | 275 | ||
276 | rdev = regulator_register(&pcap_regulators[pdev->id], &pdev->dev, | 276 | rdev = regulator_register(&pcap_regulators[pdev->id], &pdev->dev, |
277 | pdev->dev.platform_data, pcap); | 277 | pdev->dev.platform_data, pcap); |