linux-clk.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] Return immediately if sprd_clk_regmap_init() fails
@ 2019-05-21  6:09 Chunyan Zhang
  2019-05-21  6:09 ` [PATCH 1/2] clk: sprd: Switch from of_iomap() to devm_ioremap_resource() Chunyan Zhang
  2019-05-21  6:09 ` [PATCH 2/2] clk: sprd: Add check for return value of sprd_clk_regmap_init() Chunyan Zhang
  0 siblings, 2 replies; 6+ messages in thread
From: Chunyan Zhang @ 2019-05-21  6:09 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 2/2 in this set switchs to use devm_ioremap_resources()
instead of of_iomap(), that will make caller programs more simple.

Chunyan Zhang (2):
  clk: sprd: Switch from of_iomap() to devm_ioremap_resource()
  clk: sprd: Add check for 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] 6+ messages in thread

end of thread, other threads:[~2019-05-21 18:57 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-05-21  6:09 [PATCH 0/2] Return immediately if sprd_clk_regmap_init() fails Chunyan Zhang
2019-05-21  6:09 ` [PATCH 1/2] clk: sprd: Switch from of_iomap() to devm_ioremap_resource() Chunyan Zhang
2019-05-21  6:38   ` Baolin Wang
2019-05-21 18:57     ` Stephen Boyd
2019-05-21  6:09 ` [PATCH 2/2] clk: sprd: Add check for return value of sprd_clk_regmap_init() Chunyan Zhang
2019-05-21  6:38   ` Baolin Wang

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).