Thread (5 messages) 5 messages, 4 authors, 2016-09-16

Re: [PATCH v3] clk: let clk_disable() return immediately if clk is NULL

From: Florian Fainelli <f.fainelli@gmail.com>
Date: 2016-08-25 15:27:15
Also in: linux-arm-kernel, linux-clk, linux-m68k, lkml

On 08/24/2016 10:26 AM, Masahiro Yamada wrote:
Many of clk_disable() implementations just return for NULL pointer,
but this check is missing from some.  Let's make it tree-wide
consistent.  It will allow clock consumers to call clk_disable()
without NULL pointer check.

Signed-off-by: Masahiro Yamada <redacted>
Acked-by: Greg Ungerer <redacted>
Acked-by: Wan Zongshun <redacted>
---

I came back after a long pause.
You can see the discussion about the previous version:
https://www.linux-mips.org/archives/linux-mips/2016-04/msg00063.html


Changes in v3:
  - Return only when clk is NULL.  Do not take care of error pointer.

Changes in v2:
  - Rebase on Linux 4.6-rc1

 arch/arm/mach-mmp/clock.c        | 3 +++
 arch/arm/mach-w90x900/clock.c    | 3 +++
 arch/blackfin/mach-bf609/clock.c | 3 +++
 arch/m68k/coldfire/clk.c         | 4 ++++
 arch/mips/bcm63xx/clk.c          | 3 +++
For bcm63xx:

Acked-by: Florian Fainelli <f.fainelli@gmail.com>
-- 
Florian
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help