diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/input/misc/pcspkr.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/input/misc/pcspkr.c b/drivers/input/misc/pcspkr.c index 43aaa5cebd12..d6a30cee7bc7 100644 --- a/drivers/input/misc/pcspkr.c +++ b/drivers/input/misc/pcspkr.c | |||
@@ -52,13 +52,13 @@ static int pcspkr_event(struct input_dev *dev, unsigned int type, unsigned int c | |||
52 | spin_lock_irqsave(&i8253_lock, flags); | 52 | spin_lock_irqsave(&i8253_lock, flags); |
53 | 53 | ||
54 | if (count) { | 54 | if (count) { |
55 | /* enable counter 2 */ | ||
56 | outb_p(inb_p(0x61) | 3, 0x61); | ||
57 | /* set command for counter 2, 2 byte write */ | 55 | /* set command for counter 2, 2 byte write */ |
58 | outb_p(0xB6, 0x43); | 56 | outb_p(0xB6, 0x43); |
59 | /* select desired HZ */ | 57 | /* select desired HZ */ |
60 | outb_p(count & 0xff, 0x42); | 58 | outb_p(count & 0xff, 0x42); |
61 | outb((count >> 8) & 0xff, 0x42); | 59 | outb((count >> 8) & 0xff, 0x42); |
60 | /* enable counter 2 */ | ||
61 | outb_p(inb_p(0x61) | 3, 0x61); | ||
62 | } else { | 62 | } else { |
63 | /* disable counter 2 */ | 63 | /* disable counter 2 */ |
64 | outb(inb_p(0x61) & 0xFC, 0x61); | 64 | outb(inb_p(0x61) & 0xFC, 0x61); |