blackfin: bf609: let clk_disable() return immediately if clk is NULL
authorMasahiro Yamada <[email protected]>
Wed, 3 May 2017 21:51:35 +0000 (14:51 -0700)
committerLinus Torvalds <[email protected]>
Wed, 3 May 2017 22:52:07 +0000 (15:52 -0700)
commitaccce8e7e8b769ec2430bc0f4a8a2b23c68c1837
tree533773e21a90290778002c621fc6459cdc5b7403
parent672934d2470133b94df26dd3e4e3f26fbd74ff11
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/[email protected]
Signed-off-by: Masahiro Yamada <[email protected]>
Cc: Stephen Boyd <[email protected]>
Cc: Ralf Baechle <[email protected]>
Cc: Michael Turquette <[email protected]>
Cc: Steven Miao <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
arch/blackfin/mach-bf609/clock.c