[PATCH] scx200_hrt: fix precedence bug manifesting as 27x clock in 1 MHz mode

Fix paren-placement / precedence bug breaking initialization for 1 MHz
clock mode.

Also fix comment spelling error, and fence-post (off-by-one) error on
symbol used in request_region.

Addresses http://bugzilla.kernel.org/show_bug.cgi?id=7242

Thanks [email protected], [email protected], for the
reports and patch test, and [email protected] for the independent patch
and verification.

Signed-off-by:  Jim Cromie <[email protected]>
Cc: <[email protected]>
Cc: <[email protected]>
Cc: <[email protected]>
Acked-by: John Stultz <[email protected]>
Cc: <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
Jim Cromie 2006-10-04 02:15:35 -07:00 • committed by Linus Torvalds
commit 856fe98f16
2 changed files with 3 additions and 3 deletions

View file

@ -63,7 +63,7 @@ static struct clocksource cs_hrt = {
static int __init init_hrt_clocksource(void)
{
/* Make sure scx200 has initializedd the configuration block */
/* Make sure scx200 has initialized the configuration block */
if (!scx200_cb_present())
return -ENODEV;
@ -76,7 +76,7 @@ static int __init init_hrt_clocksource(void)
}
/* write timer config */
outb(HR_TMEN | (mhz27) ? HR_TMCLKSEL : 0,
outb(HR_TMEN | (mhz27 ? HR_TMCLKSEL : 0),
scx200_cb_base + SCx200_TMCNFG_OFFSET);
if (mhz27) {