projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f6a1964
)
serial: ifx6x60: add missed pm_runtime_disable
author
Chuhong Yuan
<hslester96@gmail.com>
Mon, 18 Nov 2019 02:48:33 +0000
(10:48 +0800)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Mon, 18 Nov 2019 11:47:06 +0000
(12:47 +0100)
The driver forgets to call pm_runtime_disable in remove.
Add the missed calls to fix it.
Signed-off-by: Chuhong Yuan <hslester96@gmail.com>
Cc: stable <stable@vger.kernel.org>
Link:
https://lore.kernel.org/r/20191118024833.21587-1-hslester96@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/ifx6x60.c
patch
|
blob
|
history
diff --git
a/drivers/tty/serial/ifx6x60.c
b/drivers/tty/serial/ifx6x60.c
index ffefd218761e04c633171b3f1b14151e7f05b721..31033d517e828eca8058a4eb8e094871b1169eb1 100644
(file)
--- a/
drivers/tty/serial/ifx6x60.c
+++ b/
drivers/tty/serial/ifx6x60.c
@@
-1230,6
+1230,9
@@
static int ifx_spi_spi_remove(struct spi_device *spi)
struct ifx_spi_device *ifx_dev = spi_get_drvdata(spi);
/* stop activity */
tasklet_kill(&ifx_dev->io_work_tasklet);
+
+ pm_runtime_disable(&spi->dev);
+
/* free irq */
free_irq(gpio_to_irq(ifx_dev->gpio.reset_out), ifx_dev);
free_irq(gpio_to_irq(ifx_dev->gpio.srdy), ifx_dev);