Skip to content

Commit 16ba9b0

Browse files
ralfbaechleKAGA-KOKO
authored andcommitted
i8253: Make pcspkr input driver use the shared i8253_lock
Signed-off-by: Ralf Baechle <ralf@linux-mips.org> Cc: Dmitry Torokhov <dmitry.torokhov@gmail.com> Cc: linux-input@vger.kernel.org Link: http://lkml.kernel.org/r/20110601180610.453577265@duck.linux-mips.net Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
1 parent 15f304b commit 16ba9b0

1 file changed

Lines changed: 1 addition & 8 deletions

File tree

‎drivers/input/misc/pcspkr.c‎

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414

1515
#include <linux/kernel.h>
1616
#include <linux/module.h>
17+
#include <linux/i8253.h>
1718
#include <linux/init.h>
1819
#include <linux/input.h>
1920
#include <linux/platform_device.h>
@@ -25,14 +26,6 @@ MODULE_DESCRIPTION("PC Speaker beeper driver");
2526
MODULE_LICENSE("GPL");
2627
MODULE_ALIAS("platform:pcspkr");
2728

28-
#if defined(CONFIG_MIPS) || defined(CONFIG_X86)
29-
/* Use the global PIT lock ! */
30-
#include <linux/i8253.h>
31-
#else
32-
#include <asm/8253pit.h>
33-
static DEFINE_RAW_SPINLOCK(i8253_lock);
34-
#endif
35-
3629
static int pcspkr_event(struct input_dev *dev, unsigned int type, unsigned int code, int value)
3730
{
3831
unsigned int count = 0;

0 commit comments

Comments
 (0)