diff options
Diffstat (limited to 'drivers/serial/pmac_zilog.c')
-rw-r--r-- | drivers/serial/pmac_zilog.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/drivers/serial/pmac_zilog.c b/drivers/serial/pmac_zilog.c index 5f52883e64d2..4e03a87f3fb4 100644 --- a/drivers/serial/pmac_zilog.c +++ b/drivers/serial/pmac_zilog.c | |||
@@ -69,7 +69,6 @@ | |||
69 | #include <asm/pmac_feature.h> | 69 | #include <asm/pmac_feature.h> |
70 | #include <asm/dbdma.h> | 70 | #include <asm/dbdma.h> |
71 | #include <asm/macio.h> | 71 | #include <asm/macio.h> |
72 | #include <asm/semaphore.h> | ||
73 | 72 | ||
74 | #if defined (CONFIG_SERIAL_PMACZILOG_CONSOLE) && defined(CONFIG_MAGIC_SYSRQ) | 73 | #if defined (CONFIG_SERIAL_PMACZILOG_CONSOLE) && defined(CONFIG_MAGIC_SYSRQ) |
75 | #define SUPPORT_SYSRQ | 74 | #define SUPPORT_SYSRQ |
@@ -1593,7 +1592,7 @@ static int pmz_suspend(struct macio_dev *mdev, pm_message_t pm_state) | |||
1593 | state = pmz_uart_reg.state + uap->port.line; | 1592 | state = pmz_uart_reg.state + uap->port.line; |
1594 | 1593 | ||
1595 | mutex_lock(&pmz_irq_mutex); | 1594 | mutex_lock(&pmz_irq_mutex); |
1596 | down(&state->sem); | 1595 | mutex_lock(&state->mutex); |
1597 | 1596 | ||
1598 | spin_lock_irqsave(&uap->port.lock, flags); | 1597 | spin_lock_irqsave(&uap->port.lock, flags); |
1599 | 1598 | ||
@@ -1624,7 +1623,7 @@ static int pmz_suspend(struct macio_dev *mdev, pm_message_t pm_state) | |||
1624 | /* Shut the chip down */ | 1623 | /* Shut the chip down */ |
1625 | pmz_set_scc_power(uap, 0); | 1624 | pmz_set_scc_power(uap, 0); |
1626 | 1625 | ||
1627 | up(&state->sem); | 1626 | mutex_unlock(&state->mutex); |
1628 | mutex_unlock(&pmz_irq_mutex); | 1627 | mutex_unlock(&pmz_irq_mutex); |
1629 | 1628 | ||
1630 | pmz_debug("suspend, switching complete\n"); | 1629 | pmz_debug("suspend, switching complete\n"); |
@@ -1653,7 +1652,7 @@ static int pmz_resume(struct macio_dev *mdev) | |||
1653 | state = pmz_uart_reg.state + uap->port.line; | 1652 | state = pmz_uart_reg.state + uap->port.line; |
1654 | 1653 | ||
1655 | mutex_lock(&pmz_irq_mutex); | 1654 | mutex_lock(&pmz_irq_mutex); |
1656 | down(&state->sem); | 1655 | mutex_lock(&state->mutex); |
1657 | 1656 | ||
1658 | spin_lock_irqsave(&uap->port.lock, flags); | 1657 | spin_lock_irqsave(&uap->port.lock, flags); |
1659 | if (!ZS_IS_OPEN(uap) && !ZS_IS_CONS(uap)) { | 1658 | if (!ZS_IS_OPEN(uap) && !ZS_IS_CONS(uap)) { |
@@ -1685,7 +1684,7 @@ static int pmz_resume(struct macio_dev *mdev) | |||
1685 | } | 1684 | } |
1686 | 1685 | ||
1687 | bail: | 1686 | bail: |
1688 | up(&state->sem); | 1687 | mutex_unlock(&state->mutex); |
1689 | mutex_unlock(&pmz_irq_mutex); | 1688 | mutex_unlock(&pmz_irq_mutex); |
1690 | 1689 | ||
1691 | /* Right now, we deal with delay by blocking here, I'll be | 1690 | /* Right now, we deal with delay by blocking here, I'll be |