clk: sprd: Check error only for devm_regmap_init_mmio()
authorChunyan Zhang <zhang.chunyan@linaro.org>
Wed, 22 May 2019 01:15:02 +0000 (09:15 +0800)
committerStephen Boyd <sboyd@kernel.org>
Wed, 26 Jun 2019 18:15:08 +0000 (11:15 -0700)
commit78f529695182b980a5183b850fe2d87091e36874
treee48d66fee63f86670ad41f8a0f8cc2ca3b1a4492
parent69b39d2503af55e3a2ac3130c95855ac185bb70d
clk: sprd: Check error only for devm_regmap_init_mmio()

The function devm_regmap_init_mmio() wouldn't return NULL pointer for
now, so only need to ensure the return value is not an error code.

Signed-off-by: Chunyan Zhang <zhang.chunyan@linaro.org>
Reviewed-by: Baolin Wang <baolin.wang@linaro.org>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/sprd/common.c