linux-clk.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/3] Return immediately if sprd_clk_regmap_init() fails
@ 2019-05-22  1:15 Chunyan Zhang
  2019-05-22  1:15 ` [PATCH v2 1/3] clk: sprd: Switch from of_iomap() to devm_ioremap_resource() Chunyan Zhang
                   ` (4 more replies)
  0 siblings, 5 replies; 12+ messages in thread
From: Chunyan Zhang @ 2019-05-22  1:15 UTC (permalink / raw)
  To: Stephen Boyd
  Cc: linux-clk, linux-kernel, Orson Zhai, Chunyan Zhang, Baolin Wang

The function sprd_clk_regmap_init() doesn't always return success,
drivers should return immediately when it fails ranther than
continue the clock initialization.

The patch 1/3 in this set switchs to use devm_ioremap_resources()
instead of of_iomap(), that will make caller programs more simple.

Chunyan Zhang (3):
  clk: sprd: Switch from of_iomap() to devm_ioremap_resource()
  clk: sprd: Check error only for devm_regmap_init_mmio()
  clk: sprd: Add check the return value of sprd_clk_regmap_init()

 drivers/clk/sprd/common.c     | 9 +++++++--
 drivers/clk/sprd/sc9860-clk.c | 4 +++-
 2 files changed, 10 insertions(+), 3 deletions(-)

-- 
2.17.1


^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2019-06-27  7:53 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-05-22  1:15 [PATCH v2 0/3] Return immediately if sprd_clk_regmap_init() fails Chunyan Zhang
2019-05-22  1:15 ` [PATCH v2 1/3] clk: sprd: Switch from of_iomap() to devm_ioremap_resource() Chunyan Zhang
2019-05-22  2:07   ` Baolin Wang
2019-06-26 18:16   ` Stephen Boyd
2019-06-27  7:52     ` Chunyan Zhang
2019-05-22  1:15 ` [PATCH v2 2/3] clk: sprd: Check error only for devm_regmap_init_mmio() Chunyan Zhang
2019-05-22  2:08   ` Baolin Wang
2019-06-26 18:16   ` Stephen Boyd
2019-05-22  1:15 ` [PATCH v2 3/3] clk: sprd: Add check for return value of sprd_clk_regmap_init() Chunyan Zhang
2019-06-26 18:16   ` Stephen Boyd
2019-05-22  1:15 ` [PATCH v2 3/3] clk: sprd: Add check the " Chunyan Zhang
2019-05-22  1:26 ` [PATCH v2 0/3] Return immediately if sprd_clk_regmap_init() fails Chunyan Zhang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).