Skip to content

Commit

Permalink
mfd: tps6586x: correct device name of the regulator cell
Browse files Browse the repository at this point in the history
Change the device name of the regulator function to the one chosen for
MODULE_ALIAS. This fixes kernel auto-module loading for the regulator function.

Signed-off-by: Marc Dietrich <marvin24@gmx.de>
Signed-off-by: Mark Brown <broonie@linaro.org>
  • Loading branch information
Marc Dietrich authored and Mark Brown committed Jun 24, 2013
1 parent 317ddd2 commit ec8da80
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion drivers/mfd/tps6586x.c
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ static struct mfd_cell tps6586x_cell[] = {
.name = "tps6586x-gpio",
},
{
.name = "tps6586x-pmic",
.name = "tps6586x-regulator",
},
{
.name = "tps6586x-rtc",
Expand Down
2 changes: 1 addition & 1 deletion drivers/regulator/tps6586x-regulator.c
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,7 @@ static int tps6586x_regulator_remove(struct platform_device *pdev)

static struct platform_driver tps6586x_regulator_driver = {
.driver = {
.name = "tps6586x-pmic",
.name = "tps6586x-regulator",
.owner = THIS_MODULE,
},
.probe = tps6586x_regulator_probe,
Expand Down

0 comments on commit ec8da80

Please sign in to comment.