diff options
author | Colin Ian King <colin.king@canonical.com> | 2020-07-02 13:56:59 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2020-07-02 17:45:45 +0200 |
commit | 94462138f368a5e079d53d578509276e4366d0c1 (patch) | |
tree | 9c65801da5fd4cefba74b5e99f2273ff3e72e547 /drivers/regulator/mp886x.c | |
parent | Merge series "Introduce PMIC based USB type C detection" from Wesley Cheng <w... (diff) | |
download | linux-94462138f368a5e079d53d578509276e4366d0c1.tar.xz linux-94462138f368a5e079d53d578509276e4366d0c1.zip |
regulator: fix null pointer check on regmap
The null pointer check on regmap that checks for a dev_get_regmap failure
is currently returning -ENOENT if the regmap succeeded. Fix this by adding
in the missing ! operator.
Fixes: 4fe66d5a62fb ("regulator: Add support for QCOM PMIC VBUS booster")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Addresses-Coverity: ("Dereference after null check")
Link: https://lore.kernel.org/r/20200702115659.38208-1-colin.king@canonical.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/regulator/mp886x.c')
0 files changed, 0 insertions, 0 deletions