[RADEON]: Fix unaligned I/O port access during probe.

The driver does a readl() on DEVICE_ID which is 2-byte aligned and
2-bytes in size. It's doing this read just to flush write buffers.

Create IN16() and OUT16() macros, and use the former to do this I/O
load.

Signed-off-by: David S. Miller <davem@davemloft.net>

+3 -1
+1 -1
drivers/video/aty/radeon_base.c
··· 475 475 */ 476 476 477 477 /* Flush PCI buffers ? */ 478 - tmp = INREG(DEVICE_ID); 478 + tmp = INREG16(DEVICE_ID); 479 479 480 480 local_irq_disable(); 481 481
+2
drivers/video/aty/radeonfb.h
··· 395 395 396 396 #define INREG8(addr) readb((rinfo->mmio_base)+addr) 397 397 #define OUTREG8(addr,val) writeb(val, (rinfo->mmio_base)+addr) 398 + #define INREG16(addr) readw((rinfo->mmio_base)+addr) 399 + #define OUTREG16(addr,val) writew(val, (rinfo->mmio_base)+addr) 398 400 #define INREG(addr) readl((rinfo->mmio_base)+addr) 399 401 #define OUTREG(addr,val) writel(val, (rinfo->mmio_base)+addr) 400 402