diff options
Diffstat (limited to 'drivers/serial/pmac_zilog.c')
-rw-r--r-- | drivers/serial/pmac_zilog.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/drivers/serial/pmac_zilog.c b/drivers/serial/pmac_zilog.c index 9c1243fbd512..0700cd10b97c 100644 --- a/drivers/serial/pmac_zilog.c +++ b/drivers/serial/pmac_zilog.c | |||
@@ -242,12 +242,12 @@ static struct tty_struct *pmz_receive_chars(struct uart_pmac_port *uap) | |||
242 | } | 242 | } |
243 | 243 | ||
244 | /* Sanity check, make sure the old bug is no longer happening */ | 244 | /* Sanity check, make sure the old bug is no longer happening */ |
245 | if (uap->port.info == NULL || uap->port.info->port.tty == NULL) { | 245 | if (uap->port.state == NULL || uap->port.state->port.tty == NULL) { |
246 | WARN_ON(1); | 246 | WARN_ON(1); |
247 | (void)read_zsdata(uap); | 247 | (void)read_zsdata(uap); |
248 | return NULL; | 248 | return NULL; |
249 | } | 249 | } |
250 | tty = uap->port.info->port.tty; | 250 | tty = uap->port.state->port.tty; |
251 | 251 | ||
252 | while (1) { | 252 | while (1) { |
253 | error = 0; | 253 | error = 0; |
@@ -369,7 +369,7 @@ static void pmz_status_handle(struct uart_pmac_port *uap) | |||
369 | uart_handle_cts_change(&uap->port, | 369 | uart_handle_cts_change(&uap->port, |
370 | !(status & CTS)); | 370 | !(status & CTS)); |
371 | 371 | ||
372 | wake_up_interruptible(&uap->port.info->delta_msr_wait); | 372 | wake_up_interruptible(&uap->port.state->port.delta_msr_wait); |
373 | } | 373 | } |
374 | 374 | ||
375 | if (status & BRK_ABRT) | 375 | if (status & BRK_ABRT) |
@@ -420,9 +420,9 @@ static void pmz_transmit_chars(struct uart_pmac_port *uap) | |||
420 | return; | 420 | return; |
421 | } | 421 | } |
422 | 422 | ||
423 | if (uap->port.info == NULL) | 423 | if (uap->port.state == NULL) |
424 | goto ack_tx_int; | 424 | goto ack_tx_int; |
425 | xmit = &uap->port.info->xmit; | 425 | xmit = &uap->port.state->xmit; |
426 | if (uart_circ_empty(xmit)) { | 426 | if (uart_circ_empty(xmit)) { |
427 | uart_write_wakeup(&uap->port); | 427 | uart_write_wakeup(&uap->port); |
428 | goto ack_tx_int; | 428 | goto ack_tx_int; |
@@ -655,7 +655,7 @@ static void pmz_start_tx(struct uart_port *port) | |||
655 | port->icount.tx++; | 655 | port->icount.tx++; |
656 | port->x_char = 0; | 656 | port->x_char = 0; |
657 | } else { | 657 | } else { |
658 | struct circ_buf *xmit = &port->info->xmit; | 658 | struct circ_buf *xmit = &port->state->xmit; |
659 | 659 | ||
660 | write_zsdata(uap, xmit->buf[xmit->tail]); | 660 | write_zsdata(uap, xmit->buf[xmit->tail]); |
661 | zssync(uap); | 661 | zssync(uap); |
@@ -1645,7 +1645,7 @@ static int pmz_suspend(struct macio_dev *mdev, pm_message_t pm_state) | |||
1645 | state = pmz_uart_reg.state + uap->port.line; | 1645 | state = pmz_uart_reg.state + uap->port.line; |
1646 | 1646 | ||
1647 | mutex_lock(&pmz_irq_mutex); | 1647 | mutex_lock(&pmz_irq_mutex); |
1648 | mutex_lock(&state->mutex); | 1648 | mutex_lock(&state->port.mutex); |
1649 | 1649 | ||
1650 | spin_lock_irqsave(&uap->port.lock, flags); | 1650 | spin_lock_irqsave(&uap->port.lock, flags); |
1651 | 1651 | ||
@@ -1676,7 +1676,7 @@ static int pmz_suspend(struct macio_dev *mdev, pm_message_t pm_state) | |||
1676 | /* Shut the chip down */ | 1676 | /* Shut the chip down */ |
1677 | pmz_set_scc_power(uap, 0); | 1677 | pmz_set_scc_power(uap, 0); |
1678 | 1678 | ||
1679 | mutex_unlock(&state->mutex); | 1679 | mutex_unlock(&state->port.mutex); |
1680 | mutex_unlock(&pmz_irq_mutex); | 1680 | mutex_unlock(&pmz_irq_mutex); |
1681 | 1681 | ||
1682 | pmz_debug("suspend, switching complete\n"); | 1682 | pmz_debug("suspend, switching complete\n"); |
@@ -1705,7 +1705,7 @@ static int pmz_resume(struct macio_dev *mdev) | |||
1705 | state = pmz_uart_reg.state + uap->port.line; | 1705 | state = pmz_uart_reg.state + uap->port.line; |
1706 | 1706 | ||
1707 | mutex_lock(&pmz_irq_mutex); | 1707 | mutex_lock(&pmz_irq_mutex); |
1708 | mutex_lock(&state->mutex); | 1708 | mutex_lock(&state->port.mutex); |
1709 | 1709 | ||
1710 | spin_lock_irqsave(&uap->port.lock, flags); | 1710 | spin_lock_irqsave(&uap->port.lock, flags); |
1711 | if (!ZS_IS_OPEN(uap) && !ZS_IS_CONS(uap)) { | 1711 | if (!ZS_IS_OPEN(uap) && !ZS_IS_CONS(uap)) { |
@@ -1737,7 +1737,7 @@ static int pmz_resume(struct macio_dev *mdev) | |||
1737 | } | 1737 | } |
1738 | 1738 | ||
1739 | bail: | 1739 | bail: |
1740 | mutex_unlock(&state->mutex); | 1740 | mutex_unlock(&state->port.mutex); |
1741 | mutex_unlock(&pmz_irq_mutex); | 1741 | mutex_unlock(&pmz_irq_mutex); |
1742 | 1742 | ||
1743 | /* Right now, we deal with delay by blocking here, I'll be | 1743 | /* Right now, we deal with delay by blocking here, I'll be |