From 1e73363a891758bbe997ed78778735b9f0ba482a Mon Sep 17 00:00:00 2001 From: Vitaly Rodionov Date: Fri, 9 Mar 2018 14:41:50 +0000 Subject: [PATCH] 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 --- drivers/mfd/madera-core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.20.1