diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2019-08-08 13:33:35 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2019-08-08 20:41:09 +0100 |
commit | 7352e72a513fd2757b2fda695a349d86faa4c94e (patch) | |
tree | e3222620abf2b33cb4244913ea4c58bf67a653ef /drivers/regulator/act8945a-regulator.c | |
parent | 811ba489fa524ec634933cdf83aaf6c007a4c004 (diff) | |
download | linux-7352e72a513fd2757b2fda695a349d86faa4c94e.tar.bz2 |
regulator: slg51000: Fix a couple NULL vs IS_ERR() checks
The devm_gpiod_get_from_of_node() function never returns NULL, it
returns error pointers on error.
Fixes: a867bde3dd03 ("regulator: slg51000: add slg51000 regulator driver")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Link: https://lore.kernel.org/r/20190808103335.GD30506@mwanda
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/regulator/act8945a-regulator.c')
0 files changed, 0 insertions, 0 deletions