Skip to contentSkip to conversation

ns16550: Use correct #define symbol for HAS_IOPORTS

PATCH In review Andrew Cooper 2 participants 2 messages Sep 23, 2013 – Sep 24, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ns16550: Use correct #define symbol for HAS_IOPORTS

CID 1091471, Regression caused by 7c1de0038895cbc75ebd0caffc5b0f3f03c5ad51

This appears to be a typo which causes check_existence() to unconditionally return 1 in all cases.

CC Keir Frser <[email protected]>
CC Jan Beulich <[email protected]>
CC Ian Campbell <[email protected]>
---
 xen/drivers/char/ns16550.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
xen/drivers/char/ns16550.c +1 -1
index 5892eb7..9c2cded 100644
@@ -503,7 +503,7 @@ static int __init check_existence(struct ns16550 *uart)
 {
     unsigned char status, scratch, scratch2, scratch3;
 
-#ifdef HAS_IO_PORTS
+#ifdef HAS_IOPORTS
     /*
      * We can't poke MMIO UARTs until they get I/O remapped later. Assume that
      * if we're getting MMIO UARTs, the arch code knows what it's doing.
Signature · 1 line
1.7.10.4
Acked-by on v1 1/1
#1 lore raw
Quoted 8 lines · Andrew Cooper

CID 1091471, Regression caused by 7c1de0038895cbc75ebd0caffc5b0f3f03c5ad51

This appears to be a typo which causes check_existence() to unconditionally return 1 in all cases.

CC Keir Frser <[email protected]>
CC Jan Beulich <[email protected]>
Quoted 17 lines
---
 xen/drivers/char/ns16550.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
xen/drivers/char/ns16550.c +1 -1
index 5892eb7..9c2cded 100644
@@ -503,7 +503,7 @@ static int __init check_existence(struct ns16550 *uart)
 {
     unsigned char status, scratch, scratch2, scratch3;
 
-#ifdef HAS_IO_PORTS
+#ifdef HAS_IOPORTS
     /*
      * We can't poke MMIO UARTs until they get I/O remapped later. Assume that
      * if we're getting MMIO UARTs, the arch code knows what it's doing.