ARM: w90x900: let clk_disable() return immediately if clk is NULL
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Tue, 28 Mar 2017 09:17:03 +0000 (18:17 +0900)
committerArnd Bergmann <arnd@arndb.de>
Thu, 30 Mar 2017 15:37:19 +0000 (17:37 +0200)
commite1ffaa551cfbc5fc86bb6f40d41adb5e5106ab6c
treecf722c42c64149953c522571c18681f1802b7b6d
parent0152790881d4d1c290d64b876beb1e3978872a1e
ARM: w90x900: 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>
Acked-by: Wan Zongshun <mcuos.com@gmail.com>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
arch/arm/mach-w90x900/clock.c