projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5f92635
)
MIPS: BCM63xx: Let clk_disable() return immediately if clk is NULL
author
Masahiro Yamada
<
[email protected]
>
Sun, 18 Sep 2016 18:04:35 +0000
(
03:04
+0900)
committer
Ralf Baechle
<
[email protected]
>
Tue, 4 Oct 2016 14:13:57 +0000
(16:13 +0200)
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 <
[email protected]
>
Acked-by: Florian Fainelli <
[email protected]
>
Cc: Stephen Boyd <
[email protected]
>
Cc: Michael Turquette <
[email protected]
>
Cc:
[email protected]
Cc:
[email protected]
Cc:
[email protected]
Cc:
[email protected]
Patchwork: https://patchwork.linux-mips.org/patch/14264/
Signed-off-by: Ralf Baechle <
[email protected]
>
arch/mips/bcm63xx/clk.c
patch
|
blob
|
history
diff --git
a/arch/mips/bcm63xx/clk.c
b/arch/mips/bcm63xx/clk.c
index 637565284732d396354b5a1eb056bb74e2703380..b49fc9cb9cad2de2c3768ba93e54da41177ff0a7 100644
(file)
--- a/
arch/mips/bcm63xx/clk.c
+++ b/
arch/mips/bcm63xx/clk.c
@@
-326,6
+326,9
@@
EXPORT_SYMBOL(clk_enable);
void clk_disable(struct clk *clk)
{
+ if (!clk)
+ return;
+
mutex_lock(&clocks_mutex);
clk_disable_unlocked(clk);
mutex_unlock(&clocks_mutex);