Skip to content

Commit 9f66861

Browse files
rddunlapGreg Ungerer
authored andcommitted
m68k/coldfire: change pll var. to clk_pll
DEFINE_CLK() makes the variable name be clk_xyz, so variable 'pll' should instead be 'clk_pll'. In file included from ../arch/m68k/coldfire/m525x.c:12: ../arch/m68k/coldfire/m525x.c:29:30: error: 'pll' undeclared here (not in a function) 29 | CLKDEV_INIT(NULL, "pll.0", &pll), | ^~~ ../include/linux/clkdev.h:30:10: note: in definition of macro 'CLKDEV_INIT' 30 | .clk = c, \ | ^ In file included from ../arch/m68k/coldfire/m525x.c:21: ../arch/m68k/include/asm/mcfclk.h:43:27: warning: 'clk_pll' defined but not used [-Wunused-variable] 43 | static struct clk clk_##clk_ref = { \ | ^~~~ ../arch/m68k/coldfire/m525x.c:25:1: note: in expansion of macro 'DEFINE_CLK' 25 | DEFINE_CLK(pll, "pll.0", MCF_CLK); | ^~~~~~~~~~ Fixes: 63aadb7 ("m68k: coldfire: use clkdev_lookup on most coldfire") Reported-by: kernel test robot <[email protected]> Signed-off-by: Randy Dunlap <[email protected]> Cc: Greg Ungerer <[email protected]> Cc: [email protected] Cc: [email protected] Cc: Arnd Bergmann <[email protected]> Signed-off-by: Greg Ungerer <[email protected]>
1 parent ff11764 commit 9f66861

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/m68k/coldfire/m525x.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ DEFINE_CLK(pll, "pll.0", MCF_CLK);
2626
DEFINE_CLK(sys, "sys.0", MCF_BUSCLK);
2727

2828
static struct clk_lookup m525x_clk_lookup[] = {
29-
CLKDEV_INIT(NULL, "pll.0", &pll),
29+
CLKDEV_INIT(NULL, "pll.0", &clk_pll),
3030
CLKDEV_INIT(NULL, "sys.0", &clk_sys),
3131
CLKDEV_INIT("mcftmr.0", NULL, &clk_sys),
3232
CLKDEV_INIT("mcftmr.1", NULL, &clk_sys),

0 commit comments

Comments
 (0)