Skip to content

Commit

Permalink
[POWERPC] Fix CPM2 SCC1 clock initialization.
Browse files Browse the repository at this point in the history
A missing break statement in a switch caused cpm2_clk_setup() to initialize
SCC2 instead of SCC1.

Signed-off-by: Laurent Pinchart <laurentp@cse-semaphore.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
  • Loading branch information
Laurent Pinchart authored and Kumar Gala committed Apr 3, 2008
1 parent 1e85d89 commit 025306f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions arch/powerpc/sysdev/cpm2.c
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,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;
Expand Down

0 comments on commit 025306f

Please sign in to comment.