mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 03:36:19 +00:00
serial: Make uart_port's ioport "unsigned long".
Otherwise the top 32-bits of the resource value get chopped off on 64-bit systems, and the resulting I/O accesses go to random places. Thanks to testing and debugging by Josip Rodin, which helped track this down. Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Alan Cox <alan@redhat.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
7459b6ff36
commit
0c8946d97a
1 changed files with 1 additions and 1 deletions
|
@ -241,7 +241,7 @@ typedef unsigned int __bitwise__ upf_t;
|
|||
|
||||
struct uart_port {
|
||||
spinlock_t lock; /* port lock */
|
||||
unsigned int iobase; /* in/out[bwl] */
|
||||
unsigned long iobase; /* in/out[bwl] */
|
||||
unsigned char __iomem *membase; /* read/write[bwl] */
|
||||
unsigned int irq; /* irq number */
|
||||
unsigned int uartclk; /* base uart clock */
|
||||
|
|
Loading…
Reference in a new issue