phy: qcom-ufs: Correct usage of regulator_get()
authorBjorn Andersson <bjorn.andersson@linaro.org>
Sun, 22 Jan 2017 21:17:47 +0000 (13:17 -0800)
committerKishon Vijay Abraham I <kishon@ti.com>
Fri, 27 Jan 2017 07:36:52 +0000 (13:06 +0530)
commit3471426f6ddb341debb0fc500ea9b4bb5f3f74ec
tree3fd7955e1a774262a4c24b5b8b0f30f18c50576e
parente7d5e412160c2143de1f818668774b33b3cdab0b
phy: qcom-ufs: Correct usage of regulator_get()

When regulator_get() tries to resolve a regulator supply but fail to
find a matching property in DeviceTree it returns a dummy regulator, if
a matching supply is specified but unavailable the regulator core will
return an error.

Based on this we should not ignore errors upon failing to acquire the
optional "vddp-ref-clk" supply.

Reviewed-by: Vivek Gautam <vivek.gautam@codeaurora.org>
Reviewed-by: Subhash Jadavani <subhashj@codeaurora.org>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
drivers/phy/phy-qcom-ufs.c