Skip to content

Commit 3a97e1e

Browse files
hoshinolinajannau
authored andcommitted
fixup! tty: serial: samsung_tty: Support runtime PM
1 parent 1f07ef7 commit 3a97e1e

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
@@ -2082,7 +2082,7 @@ static void s3c24xx_serial_remove(struct platform_device *dev)
20822082
struct uart_port *port = s3c24xx_dev_to_port(&dev->dev);
20832083
struct s3c24xx_uart_port *ourport = to_ourport(port);
20842084

2085-
if (port)
2085+
if (port) {
20862086
pm_runtime_get_sync(&dev->dev);
20872087
uart_remove_one_port(&s3c24xx_uart_drv, port);
20882088

@@ -2093,6 +2093,7 @@ static void s3c24xx_serial_remove(struct platform_device *dev)
20932093
pm_runtime_disable(&dev->dev);
20942094
pm_runtime_set_suspended(&dev->dev);
20952095
pm_runtime_put_noidle(&dev->dev);
2096+
}
20962097

20972098
uart_unregister_driver(&s3c24xx_uart_drv);
20982099
}

0 commit comments

Comments
 (0)