patch-2_6_7-vs1_9_1_12
[linux-2.6.git] / drivers / input / misc / 98spkr.c
index d50ac2a..cdb6c0d 100644 (file)
@@ -17,6 +17,7 @@
 #include <linux/module.h>
 #include <linux/init.h>
 #include <linux/input.h>
+#include <asm/8253pit.h>
 #include <asm/io.h>
 
 MODULE_AUTHOR("Osamu Tomita <tomita@cinet.co.jp>");
@@ -41,11 +42,11 @@ static int spkr98_event(struct input_dev *dev, unsigned int type, unsigned int c
                case SND_BELL: if (value) value = 1000;
                case SND_TONE: break;
                default: return -1;
-       } 
+       }
 
        if (value > 20 && value < 32767)
-               count = CLOCK_TICK_RATE / value;
-       
+               count = PIT_TICK_RATE / value;
+
        spin_lock_irqsave(&i8253_beep_lock, flags);
 
        if (count) {