summaryrefslogtreecommitdiff
path: root/arch/m68k
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2021-07-29 15:27:03 +0300
committerGreg Ungerer <gerg@linux-m68k.org>2021-08-23 08:40:04 +1000
commitf6a4f0b424df957d84fa7b9f2d02981234ff5828 (patch)
tree838597725fda94f8f6c62ee7f7f5664dff924926 /arch/m68k
parent35a9f9363a89aa964c85b769c434a42b8b0f4b0d (diff)
m68k: coldfire: return success for clk_enable(NULL)
The clk_enable is supposed work when CONFIG_HAVE_CLK is false, but it returns -EINVAL. That means some drivers fail during probe. [ 1.680000] flexcan: probe of flexcan.0 failed with error -22 Fixes: c1fb1bf64bb6 ("m68k: let clk_enable() return immediately if clk is NULL") Fixes: bea8bcb12da0 ("m68knommu: Add support for the Coldfire m5441x.") Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Acked-by: Marc Kleine-Budde <mkl@pengutronix.de> Signed-off-by: Greg Ungerer <gerg@linux-m68k.org>
Diffstat (limited to 'arch/m68k')
-rw-r--r--arch/m68k/coldfire/clk.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/m68k/coldfire/clk.c b/arch/m68k/coldfire/clk.c
index 2ed841e94111..d03b6c4aa86b 100644
--- a/arch/m68k/coldfire/clk.c
+++ b/arch/m68k/coldfire/clk.c
@@ -78,7 +78,7 @@ int clk_enable(struct clk *clk)
unsigned long flags;
if (!clk)
- return -EINVAL;
+ return 0;
spin_lock_irqsave(&clk_lock, flags);
if ((clk->enabled++ == 0) && clk->clk_ops)