powerpc: Fix CPM2 SCC1 clock initialization.
PATCH 1/1 powerpc: Fix CPM2 SCC1 clock initialization.
A missing break statement in a switch caused cpm2_clk_setup() to initialize SCC2 instead of SCC1. This patch fixes the bug.
Signed-off-by Laurent Pinchart <[email protected]>
--- arch/powerpc/sysdev/cpm2.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
arch/powerpc/sysdev/cpm2.c +1 -0
@@ -246,6 +246,7 @@ int cpm2_clk_setup(enum cpm_clk_target target, int clock, int mode)case CPM_CLK_SCC1 : reg = &im_cpmux->cmx_scr; shift =24 ; +break ;case CPM_CLK_SCC2 : reg = &im_cpmux->cmx_scr; shift =16 ;
Signature · 13 lines
1.5.0 -- Laurent Pinchart CSE Semaphore Belgium Chaussée de Bruxelles, 732A B-1410 Waterloo Belgium T +32 (2) 387 42 59 F +32 (2) 387 42 75
Kumar Gala
AppliedQuoted 7 lines · Laurent Pinchart
A missing break statement in a switch caused
cpm2_clk_setup()to initialize SCC2 instead of SCC1. This patch fixes the bug.Signed-off-by Laurent Pinchart <[email protected]>---
arch/powerpc/sysdev/cpm2.c| 1 +1 files changed, 1 insertions(+), 0 deletions(-)
applied.
However your email is malformatted. Since it was a trivial patch I fixed it up by hand.
- k