[POWERPC] cpm2: Fix off-by-one error in setbrg().
authorScott Wood <scottwood@freescale.com>
Wed, 5 Sep 2007 19:29:10 +0000 (14:29 -0500)
committerKumar Gala <galak@kernel.crashing.org>
Mon, 10 Sep 2007 21:02:09 +0000 (16:02 -0500)
commit83fcdb4b352f74a8a74737aedeaf622c37140c73
tree2f948f23d9bf48aa08f82ff48661440c969ffa1c
parent36c50f729b77144cae8d43457fefca66a4eeff6a
[POWERPC] cpm2: Fix off-by-one error in setbrg().

The hardware adds one to the BRG value to get the divider, so it must
be subtracted by software.  Without this patch, characters will occasionally
be corrupted.

Signed-off-by: Scott Wood <scottwood@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
arch/powerpc/sysdev/cpm2_common.c