ARM: mmp: let clk_disable() return immediately if clk is NULL
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Tue, 28 Mar 2017 09:17:02 +0000 (18:17 +0900)
committerArnd Bergmann <arnd@arndb.de>
Thu, 30 Mar 2017 15:38:34 +0000 (17:38 +0200)
commitaa9daa310dee3f86fa3a693fecd996a28d993cc6
treef836446def30f338b71352a526834ad242e6ec70
parente1ffaa551cfbc5fc86bb6f40d41adb5e5106ab6c
ARM: mmp: 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.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
arch/arm/mach-mmp/clock.c