regulator: slg51000: Fix a couple NULL vs IS_ERR() checks
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 8 Aug 2019 10:33:35 +0000 (13:33 +0300)
committerMark Brown <broonie@kernel.org>
Thu, 8 Aug 2019 19:41:09 +0000 (20:41 +0100)
commit7352e72a513fd2757b2fda695a349d86faa4c94e
treee3222620abf2b33cb4244913ea4c58bf67a653ef
parent811ba489fa524ec634933cdf83aaf6c007a4c004
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>
drivers/regulator/slg51000-regulator.c