Commit 561427f5 authored by Axel Lin's avatar Axel Lin Committed by Mark Brown

mfd: pcf50633: Correct device name for pcf50633 regulator

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: default avatarAxel Lin <axel.lin@ingics.com>
Acked-by: default avatarLee Jones <lee.jones@linaro.org>
Signed-off-by: default avatarMark Brown <broonie@linaro.org>
parent 6ce4eac1
...@@ -245,7 +245,7 @@ static int pcf50633_probe(struct i2c_client *client, ...@@ -245,7 +245,7 @@ static int pcf50633_probe(struct i2c_client *client,
for (i = 0; i < PCF50633_NUM_REGULATORS; i++) { for (i = 0; i < PCF50633_NUM_REGULATORS; i++) {
struct platform_device *pdev; struct platform_device *pdev;
pdev = platform_device_alloc("pcf50633-regltr", i); pdev = platform_device_alloc("pcf50633-regulator", i);
if (!pdev) { if (!pdev) {
dev_err(pcf->dev, "Cannot create regulator %d\n", i); dev_err(pcf->dev, "Cannot create regulator %d\n", i);
continue; continue;
......
...@@ -105,7 +105,7 @@ static int pcf50633_regulator_probe(struct platform_device *pdev) ...@@ -105,7 +105,7 @@ static int pcf50633_regulator_probe(struct platform_device *pdev)
static struct platform_driver pcf50633_regulator_driver = { static struct platform_driver pcf50633_regulator_driver = {
.driver = { .driver = {
.name = "pcf50633-regltr", .name = "pcf50633-regulator",
}, },
.probe = pcf50633_regulator_probe, .probe = pcf50633_regulator_probe,
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment