mfd: tps6586x: correct device name of the regulator cell
authorMarc Dietrich <marvin24@gmx.de>
Mon, 10 Jun 2013 20:27:55 +0000 (22:27 +0200)
committerMark Brown <broonie@linaro.org>
Mon, 24 Jun 2013 11:37:47 +0000 (12:37 +0100)
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>
drivers/mfd/tps6586x.c
drivers/regulator/tps6586x-regulator.c

index 721b918..4b93ed4 100644 (file)
@@ -107,7 +107,7 @@ static struct mfd_cell tps6586x_cell[] = {
                .name = "tps6586x-gpio",
        },
        {
-               .name = "tps6586x-pmic",
+               .name = "tps6586x-regulator",
        },
        {
                .name = "tps6586x-rtc",
index d8fa37d..2c9155b 100644 (file)
@@ -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,