From: Ingo Molnar Date: Wed, 30 Jan 2008 12:31:24 +0000 (+0100) Subject: x86: replace outb_p() with udelay(2) in drivers/input/mouse/pc110pad.c X-Git-Tag: v2.6.25-rc1~1143^2~559 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=41e191e85a122ad822deb7525a015410012e6c70;p=linux-2.6-omap-h63xx.git x86: replace outb_p() with udelay(2) in drivers/input/mouse/pc110pad.c replace outb_p() with udelay(2). This is a real ISA device so it likely needs this particular delay. Signed-off-by: Ingo Molnar Signed-off-by: Thomas Gleixner --- diff --git a/drivers/input/mouse/pc110pad.c b/drivers/input/mouse/pc110pad.c index 8991ab0b4fe..61cff8374e6 100644 --- a/drivers/input/mouse/pc110pad.c +++ b/drivers/input/mouse/pc110pad.c @@ -39,6 +39,7 @@ #include #include #include +#include #include #include @@ -62,8 +63,10 @@ static irqreturn_t pc110pad_interrupt(int irq, void *ptr) int value = inb_p(pc110pad_io); int handshake = inb_p(pc110pad_io + 2); - outb_p(handshake | 1, pc110pad_io + 2); - outb_p(handshake & ~1, pc110pad_io + 2); + outb(handshake | 1, pc110pad_io + 2); + udelay(2); + outb(handshake & ~1, pc110pad_io + 2); + udelay(2); inb_p(0x64); pc110pad_data[pc110pad_count++] = value;