summaryrefslogtreecommitdiff
path: root/drivers/char/mmtimer.c
diff options
context:
space:
mode:
authorChristoph Lameter <clameter@sgi.com>2004-09-23 19:47:20 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2004-09-23 19:47:20 -0700
commit63792bbdbdb29c85ef28efb2004e4a9e0575aa06 (patch)
tree5bcb927f95b5a5e92cb93832fae06f55d34ebf82 /drivers/char/mmtimer.c
parent6bf4692f124ec09ee0361fefba5afb3c6d91d612 (diff)
[PATCH] mmtimer quietness
Quiet mmtimer on non-SGI boxes (previously it printed "mmtimer: unable to determine clock frequency"). Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com> Signed-off-by: Christoph Lameter <clameter@sgi.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/char/mmtimer.c')
-rw-r--r--drivers/char/mmtimer.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/char/mmtimer.c b/drivers/char/mmtimer.c
index b9a8e90ba0ac..20aa170db6a8 100644
--- a/drivers/char/mmtimer.c
+++ b/drivers/char/mmtimer.c
@@ -184,6 +184,9 @@ static struct miscdevice mmtimer_miscdev = {
*/
static int __init mmtimer_init(void)
{
+ if (!ia64_platform_is("sn2"))
+ return -1;
+
/*
* Sanity check the cycles/sec variable
*/