drm/bridge: analogix-anx6345: Avoid duplicate -supply suffix
authorTorsten Duwe <duwe@lst.de>
Tue, 18 Feb 2020 15:54:40 +0000 (16:54 +0100)
committerThomas Zimmermann <tzimmermann@suse.de>
Fri, 21 Feb 2020 12:22:30 +0000 (13:22 +0100)
of_get_regulator() will unconditionally add "-supply" to form the
property name. This is documented in commit 69511a452e6dc ("map consumer
regulator based on device tree"). Remove the suffix from the requests.

Signed-off-by: Torsten Duwe <duwe@lst.de>
Reviewed-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Link: https://patchwork.freedesktop.org/patch/msgid/20200218155440.BEFB968C65@verein.lst.de
drivers/gpu/drm/bridge/analogix/analogix-anx6345.c

index 56f55c5..0d8d083 100644 (file)
@@ -712,14 +712,14 @@ static int anx6345_i2c_probe(struct i2c_client *client,
                DRM_DEBUG("No panel found\n");
 
        /* 1.2V digital core power regulator  */
-       anx6345->dvdd12 = devm_regulator_get(dev, "dvdd12-supply");
+       anx6345->dvdd12 = devm_regulator_get(dev, "dvdd12");
        if (IS_ERR(anx6345->dvdd12)) {
                DRM_ERROR("dvdd12-supply not found\n");
                return PTR_ERR(anx6345->dvdd12);
        }
 
        /* 2.5V digital core power regulator  */
-       anx6345->dvdd25 = devm_regulator_get(dev, "dvdd25-supply");
+       anx6345->dvdd25 = devm_regulator_get(dev, "dvdd25");
        if (IS_ERR(anx6345->dvdd25)) {
                DRM_ERROR("dvdd25-supply not found\n");
                return PTR_ERR(anx6345->dvdd25);