{
struct s3c24xx_uart_port *ourport = to_ourport(port);
unsigned int umcon;
-#ifdef CONFIG_SERIAL_SAMSUNG_HWACG
- unsigned int ucon;
-#endif
switch (level) {
case S3C24XX_UART_PORT_SUSPEND:
wr_regl(port, S3C2410_UMCON, umcon);
}
-#ifdef CONFIG_SERIAL_SAMSUNG_HWACG
- /* disable Tx, Rx mode bit for suspend in case of HWACG */
- ucon = rd_regl(port, S3C2410_UCON);
- ucon &= ~(S3C2410_UCON_RXIRQMODE | S3C2410_UCON_TXIRQMODE) ;
- wr_regl(port, S3C2410_UCON, ucon);
- rx_enabled(port) = 0;
- tx_enabled(port) = 0;
-#endif
uart_clock_disable(ourport);
break;
{
struct uart_port *port = s3c24xx_dev_to_port(dev);
struct s3c24xx_uart_port *ourport = to_ourport(port);
+#ifdef CONFIG_SERIAL_SAMSUNG_HWACG
+ unsigned int ucon;
+#endif
if (port) {
uart_suspend_port(&s3c24xx_uart_drv, port);
+#ifdef CONFIG_SERIAL_SAMSUNG_HWACG
+ /* disable Tx, Rx mode bit for suspend in case of HWACG */
+ ucon = rd_regl(port, S3C2410_UCON);
+ ucon &= ~(S3C2410_UCON_RXIRQMODE | S3C2410_UCON_TXIRQMODE) ;
+ wr_regl(port, S3C2410_UCON, ucon);
+ rx_enabled(port) = 0;
+ tx_enabled(port) = 0;
+#endif
if (ourport->dbg_mode & UART_DBG_MODE)
dev_err(dev, "UART suspend notification for tty framework.\n");
}