regulator: core: return error in regulator_get() after checking for dummy regulator
authorLaxman Dewangan <ldewangan@nvidia.com>
Sat, 9 Nov 2013 11:28:49 +0000 (16:28 +0530)
committerDeepak Nibade <dnibade@nvidia.com>
Mon, 11 Nov 2013 12:49:29 +0000 (04:49 -0800)
commit70f5664c5c10d14a172e0ea4ee5efde957e35ad9
tree5e46d4b0bbfff06f4b7207bde8fce9d63d16c01c
parent2446e7be93481e9a1803a06feeb4219b7ea8772c
regulator: core: return error in regulator_get() after checking for dummy regulator

If dummy regulator is enabled in a given platform and regulaotr lookup
fails then check for the dummy regulator and then only return proper
regulator or error.

Change-Id: I480b778c89c15d968ce24876a6412babcdafb846
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/328628
Reviewed-by: Deepak Nibade <dnibade@nvidia.com>
Tested-by: Raghavendra V K <rvk@nvidia.com>
Reviewed-by: Bhavesh Parekh <bparekh@nvidia.com>
drivers/regulator/core.c