]> git.baikalelectronics.ru Git - kernel.git/commit
regmap: use IS_ERR() to check clk_get() results
authorStephen Warren <swarren@nvidia.com>
Mon, 25 Nov 2013 22:12:47 +0000 (15:12 -0700)
committerMark Brown <broonie@linaro.org>
Tue, 26 Nov 2013 13:16:31 +0000 (13:16 +0000)
commitcce86450179e52090939f6186ee56db3725271f5
tree135b6df97750ad18ffec09a30c0d8fc902678a52
parent446a01ebfd5c46dcad993153e533f5f1d30e2d44
regmap: use IS_ERR() to check clk_get() results

clk_get() returns an error pointer, or a valid token to pass back to the
clock API. Hence, the result must be checked with IS_ERR(), not by
comparison against NULL.

Signed-off-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
drivers/base/regmap/regmap-mmio.c