Skip to content

Commit 11ab89d

Browse files
hoshinolinajannau
authored andcommitted
fixup! tty: serial: samsung_tty: Support runtime PM
1 parent aafe5ed commit 11ab89d

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

drivers/tty/serial/samsung_tty.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2080,7 +2080,7 @@ static void s3c24xx_serial_remove(struct platform_device *dev)
20802080
struct uart_port *port = s3c24xx_dev_to_port(&dev->dev);
20812081
struct s3c24xx_uart_port *ourport = to_ourport(port);
20822082

2083-
if (port)
2083+
if (port) {
20842084
pm_runtime_get_sync(&dev->dev);
20852085
uart_remove_one_port(&s3c24xx_uart_drv, port);
20862086

@@ -2091,6 +2091,7 @@ static void s3c24xx_serial_remove(struct platform_device *dev)
20912091
pm_runtime_disable(&dev->dev);
20922092
pm_runtime_set_suspended(&dev->dev);
20932093
pm_runtime_put_noidle(&dev->dev);
2094+
}
20942095

20952096
uart_unregister_driver(&s3c24xx_uart_drv);
20962097
}

0 commit comments

Comments
 (0)