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)
committerMark Brown <broonie@kernel.org>
Fri, 20 Jul 2018 16:40:50 +0000 (17:40 +0100)
commit85046a15529606466bc778e1205f4cab8e3724d1
tree5d341fb42a7609bbe30db64523f3487289880c33
parentfffe7f52eb5db41eedadba9a8038e982dcfaee0c
regulator: qcom_spmi: Use correct regmap when checking for error

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>
drivers/regulator/qcom_spmi-regulator.c