Skip to content

Commit 50b2b57

Browse files
WillLestergregkh
authored andcommitted
serial: ifx6x60: add missed pm_runtime_disable
The driver forgets to call pm_runtime_disable in remove. Add the missed calls to fix it. Signed-off-by: Chuhong Yuan <[email protected]> Cc: stable <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent f6a1964 commit 50b2b57

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

drivers/tty/serial/ifx6x60.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1230,6 +1230,9 @@ static int ifx_spi_spi_remove(struct spi_device *spi)
12301230
struct ifx_spi_device *ifx_dev = spi_get_drvdata(spi);
12311231
/* stop activity */
12321232
tasklet_kill(&ifx_dev->io_work_tasklet);
1233+
1234+
pm_runtime_disable(&spi->dev);
1235+
12331236
/* free irq */
12341237
free_irq(gpio_to_irq(ifx_dev->gpio.reset_out), ifx_dev);
12351238
free_irq(gpio_to_irq(ifx_dev->gpio.srdy), ifx_dev);

0 commit comments

Comments
 (0)