From: Vitaly Rodionov Date: Fri, 9 Mar 2018 14:41:50 +0000 (+0000) Subject: mfd: madera: Change regulator_get_exclusive() to regulator_get(). X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=e252dee86dbb1b4a93abace415c15f13aad77070;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git mfd: madera: Change regulator_get_exclusive() to regulator_get(). On some platforms observed, like qcom and rpi for example, calls to regulator_get_exclusive() fails. Changing regulator_get_exclusive() to ordinal regulator_get() will illuminate dependency on unexpected platforms behaviour. Change-Id: I8fe9ef78d8aa3c1f39c64b24ef7458013e4b6135 Signed-off-by: Vitaly Rodionov --- diff --git a/drivers/mfd/madera-core.c b/drivers/mfd/madera-core.c index b78c3cf6507a..3f512dc42012 100644 --- a/drivers/mfd/madera-core.c +++ b/drivers/mfd/madera-core.c @@ -726,7 +726,7 @@ int madera_dev_init(struct madera *madera) * one of its children. Meaning that the regulator will be * destroyed by the time devres calls regulator put. */ - madera->dcvdd = regulator_get_exclusive(madera->dev, "DCVDD"); + madera->dcvdd = regulator_get(madera->dev, "DCVDD"); if (IS_ERR(madera->dcvdd)) { ret = PTR_ERR(madera->dcvdd); dev_err(dev, "Failed to request DCVDD: %d\n", ret);