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 721b9186a5d1cdeb3679bbd34ba786d5d9e996e8..4b93ed4d5cd6a3649efdaa2c0eedc191792ab7c0 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 d8fa37d5c7342bee03a7e6bce2794a8669342f9e..2c9155b66f09f914789c4afde4a8fd630ddd6eba 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,