OSDN Git Service

regulator: qcom_spmi: Use correct regmap when checking for error
authorNiklas Cassel <niklas.cassel@linaro.org>
Mon, 16 Jul 2018 13:32:52 +0000 (15:32 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 26 Sep 2018 06:39:28 +0000 (08:39 +0200)
commit9611efe6701964471d088d02cec7bcc6c773bfee
tree2d9250400600bf95e643f37ebb6192df954fe33b
parent4a5dfbca3e03d2b5ea77bcb275747573e72fcd5f
regulator: qcom_spmi: Use correct regmap when checking for error

[ Upstream commit 85046a15529606466bc778e1205f4cab8e3724d1 ]

Since we have just assigned saw_regmap, and since the error message
refers to saw_regmap, it feels safe to assume that it is saw_regmap,
and not regmap, that should be checked for errors.

Fixes: 0caecaa87202 ("regulator: qcom_spmi: Add support for SAW")
Signed-off-by: Niklas Cassel <niklas.cassel@linaro.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/regulator/qcom_spmi-regulator.c