summaryrefslogtreecommitdiff
path: root/drivers/regulator/sy7636a-regulator.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/regulator/sy7636a-regulator.c')
-rw-r--r--drivers/regulator/sy7636a-regulator.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/regulator/sy7636a-regulator.c b/drivers/regulator/sy7636a-regulator.c
index 8360b3947ead..22fddf868e4c 100644
--- a/drivers/regulator/sy7636a-regulator.c
+++ b/drivers/regulator/sy7636a-regulator.c
@@ -70,7 +70,7 @@ static const struct regulator_desc desc = {
static int sy7636a_regulator_probe(struct platform_device *pdev)
{
- struct regmap *regmap = dev_get_drvdata(pdev->dev.parent);
+ struct regmap *regmap = dev_get_regmap(pdev->dev.parent, NULL);
struct regulator_config config = { };
struct regulator_dev *rdev;
struct gpio_desc *gdp;