Skip to content

Commit cb17820

Browse files
alistair23broonie
authored andcommitted
regulator: sy7636a: Remove requirement on sy7636a mfd
Signed-off-by: Alistair Francis <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent 061514d commit cb17820

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

drivers/regulator/Kconfig

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1199,7 +1199,6 @@ config REGULATOR_STW481X_VMMC
11991199

12001200
config REGULATOR_SY7636A
12011201
tristate "Silergy SY7636A voltage regulator"
1202-
depends on MFD_SY7636A
12031202
help
12041203
This driver supports Silergy SY3686A voltage regulator.
12051204

drivers/regulator/sy7636a-regulator.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ static const struct regulator_desc desc = {
7070

7171
static int sy7636a_regulator_probe(struct platform_device *pdev)
7272
{
73-
struct regmap *regmap = dev_get_drvdata(pdev->dev.parent);
73+
struct regmap *regmap = dev_get_regmap(pdev->dev.parent, NULL);
7474
struct regulator_config config = { };
7575
struct regulator_dev *rdev;
7676
struct gpio_desc *gdp;

0 commit comments

Comments
 (0)