]> Pileus Git - ~andy/linux/blobdiff - drivers/serial/pmac_zilog.c
[PATCH] Serial: Fix console port spinlock initialisation
[~andy/linux] / drivers / serial / pmac_zilog.c
index 85abd8a045e088cf2c6414aa52cf91fa1c22dba6..1c9f71617123ad4ecf80674f9a737e22feddabf1 100644 (file)
@@ -604,7 +604,7 @@ static void pmz_set_mctrl(struct uart_port *port, unsigned int mctrl)
 /* 
  * Get Modem Control bits (only the input ones, the core will
  * or that with a cached value of the control ones)
- * The port lock is not held.
+ * The port lock is held and interrupts are disabled.
  */
 static unsigned int pmz_get_mctrl(struct uart_port *port)
 {
@@ -615,7 +615,7 @@ static unsigned int pmz_get_mctrl(struct uart_port *port)
        if (ZS_IS_ASLEEP(uap) || uap->node == NULL)
                return 0;
 
-       status = pmz_peek_status(to_pmz(port));
+       status = read_zsreg(uap, R0);
 
        ret = 0;
        if (status & DCD)