All of lore.kernel.org
 help / color / mirror / Atom feed
* + blackfin-bf609-let-clk_disable-return-immediately-if-clk-is-null.patch added to -mm tree
@ 2017-04-13 19:36 akpm
  0 siblings, 0 replies; only message in thread
From: akpm @ 2017-04-13 19:36 UTC (permalink / raw)
  To: yamada.masahiro, mturquette, ralf, realmz6, sboyd, mm-commits


The patch titled
     Subject: blackfin: bf609: let clk_disable() return immediately if clk is NULL
has been added to the -mm tree.  Its filename is
     blackfin-bf609-let-clk_disable-return-immediately-if-clk-is-null.patch

This patch should soon appear at
    http://ozlabs.org/~akpm/mmots/broken-out/blackfin-bf609-let-clk_disable-return-immediately-if-clk-is-null.patch
and later at
    http://ozlabs.org/~akpm/mmotm/broken-out/blackfin-bf609-let-clk_disable-return-immediately-if-clk-is-null.patch

Before you just go and hit "reply", please:
   a) Consider who else should be cc'ed
   b) Prefer to cc a suitable mailing list as well
   c) Ideally: find the original patch on the mailing list and do a
      reply-to-all to that, adding suitable additional cc's

*** Remember to use Documentation/SubmitChecklist when testing your code ***

The -mm tree is included into linux-next and is updated
there every 3-4 working days

------------------------------------------------------
From: Masahiro Yamada <yamada.masahiro@socionext.com>
Subject: blackfin: bf609: let clk_disable() return immediately if clk is NULL

In many of clk_disable() implementations, it is a no-op for a NULL
pointer input, but this is one of the exceptions.

Making it treewide consistent will allow clock consumers to call
clk_disable() without NULL pointer check.

Link: http://lkml.kernel.org/r/1490692624-11931-4-git-send-email-yamada.masahiro@socionext.com
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Cc: Stephen Boyd <sboyd@codeaurora.org>
Cc: Ralf Baechle <ralf@linux-mips.org>
Cc: Michael Turquette <mturquette@baylibre.com>
Cc: Steven Miao <realmz6@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---

 arch/blackfin/mach-bf609/clock.c |    3 +++
 1 file changed, 3 insertions(+)

diff -puN arch/blackfin/mach-bf609/clock.c~blackfin-bf609-let-clk_disable-return-immediately-if-clk-is-null arch/blackfin/mach-bf609/clock.c
--- a/arch/blackfin/mach-bf609/clock.c~blackfin-bf609-let-clk_disable-return-immediately-if-clk-is-null
+++ a/arch/blackfin/mach-bf609/clock.c
@@ -97,6 +97,9 @@ EXPORT_SYMBOL(clk_enable);
 
 void clk_disable(struct clk *clk)
 {
+	if (!clk)
+		return;
+
 	if (clk->ops && clk->ops->disable)
 		clk->ops->disable(clk);
 }
_

Patches currently in -mm which might be from yamada.masahiro@socionext.com are

blackfin-bf609-let-clk_disable-return-immediately-if-clk-is-null.patch
scripts-spellingtxt-add-intialised-pattern-and-fix-typo-instances.patch


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2017-04-13 19:36 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-04-13 19:36 + blackfin-bf609-let-clk_disable-return-immediately-if-clk-is-null.patch added to -mm tree akpm

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.