]> Pileus Git - ~andy/linux/commitdiff
mfd: pcf50633: Correct device name for pcf50633 regulator
authorAxel Lin <axel.lin@ingics.com>
Sat, 30 Nov 2013 04:21:03 +0000 (12:21 +0800)
committerMark Brown <broonie@linaro.org>
Mon, 2 Dec 2013 17:58:58 +0000 (17:58 +0000)
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: Axel Lin <axel.lin@ingics.com>
Acked-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Mark Brown <broonie@linaro.org>
drivers/mfd/pcf50633-core.c
drivers/regulator/pcf50633-regulator.c

index 6841d6805fd64a6aaab032ce121d4e3c63b36443..41ab5e34d2acb0a150f5ae9af8aab3774cfd01a3 100644 (file)
@@ -245,7 +245,7 @@ static int pcf50633_probe(struct i2c_client *client,
        for (i = 0; i < PCF50633_NUM_REGULATORS; i++) {
                struct platform_device *pdev;
 
-               pdev = platform_device_alloc("pcf50633-regltr", i);
+               pdev = platform_device_alloc("pcf50633-regulator", i);
                if (!pdev) {
                        dev_err(pcf->dev, "Cannot create regulator %d\n", i);
                        continue;
index d7da1c15a6da447d699e080a4bfda259f734c5f0..134f90ec9ca1fc80c1728d0ae4d6778edc93e2f6 100644 (file)
@@ -105,7 +105,7 @@ static int pcf50633_regulator_probe(struct platform_device *pdev)
 
 static struct platform_driver pcf50633_regulator_driver = {
        .driver = {
-               .name = "pcf50633-regltr",
+               .name = "pcf50633-regulator",
        },
        .probe = pcf50633_regulator_probe,
 };