Skip to content

Commit f6a4f0b

Browse files
Dan CarpenterGreg Ungerer
authored andcommitted
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: c1fb1bf ("m68k: let clk_enable() return immediately if clk is NULL") Fixes: bea8bcb ("m68knommu: Add support for the Coldfire m5441x.") Signed-off-by: Dan Carpenter <[email protected]> Acked-by: Marc Kleine-Budde <[email protected]> Signed-off-by: Greg Ungerer <[email protected]>
1 parent 35a9f93 commit f6a4f0b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/m68k/coldfire/clk.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ int clk_enable(struct clk *clk)
7878
unsigned long flags;
7979

8080
if (!clk)
81-
return -EINVAL;
81+
return 0;
8282

8383
spin_lock_irqsave(&clk_lock, flags);
8484
if ((clk->enabled++ == 0) && clk->clk_ops)

0 commit comments

Comments
 (0)