forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branches 'regulator/topic/core', 'regulator/top…
…ic/regmap' and 'regulator/topic/register' into regulator-next
- Loading branch information
Showing
60 changed files
with
2,070 additions
and
2,211 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -178,6 +178,7 @@ static struct aat2870_regulator *aat2870_get_regulator(int id) | |
static int aat2870_regulator_probe(struct platform_device *pdev) | ||
{ | ||
struct aat2870_regulator *ri; | ||
struct regulator_config config = { 0 }; | ||
struct regulator_dev *rdev; | ||
|
||
ri = aat2870_get_regulator(pdev->id); | ||
|
@@ -187,8 +188,11 @@ static int aat2870_regulator_probe(struct platform_device *pdev) | |
} | ||
ri->aat2870 = dev_get_drvdata(pdev->dev.parent); | ||
|
||
rdev = regulator_register(&ri->desc, &pdev->dev, | ||
pdev->dev.platform_data, ri, NULL); | ||
config.dev = &pdev->dev; | ||
config.driver_data = ri; | ||
config.init_data = pdev->dev.platform_data; | ||
|
||
rdev = regulator_register(&ri->desc, &config); | ||
if (IS_ERR(rdev)) { | ||
dev_err(&pdev->dev, "Failed to register regulator %s\n", | ||
ri->desc.name); | ||
|
@@ -231,3 +235,4 @@ module_exit(aat2870_regulator_exit); | |
MODULE_DESCRIPTION("AnalogicTech AAT2870 Regulator"); | ||
MODULE_LICENSE("GPL"); | ||
MODULE_AUTHOR("Jin Park <[email protected]>"); | ||
MODULE_ALIAS("platform:aat2870-regulator"); |
Oops, something went wrong.