summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChuhong Yuan <hslester96@gmail.com>2019-11-18 10:48:33 +0800
committerBen Hutchings <ben@decadent.org.uk>2020-02-11 20:03:43 +0000
commit444b7f77614e3a07ddfaf5f0109b874962377711 (patch)
treedf1397334b1a575750febbec45807342d5af6824
parent2ce5f201744ae2245e6bd8587826a031789c6702 (diff)
downloadlinux-444b7f77614e3a07ddfaf5f0109b874962377711.tar.gz
linux-444b7f77614e3a07ddfaf5f0109b874962377711.tar.bz2
linux-444b7f77614e3a07ddfaf5f0109b874962377711.zip
serial: ifx6x60: add missed pm_runtime_disable
commit 50b2b571c5f3df721fc81bf9a12c521dfbe019ba upstream. 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> Link: https://lore.kernel.org/r/20191118024833.21587-1-hslester96@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
-rw-r--r--drivers/tty/serial/ifx6x60.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/tty/serial/ifx6x60.c b/drivers/tty/serial/ifx6x60.c
index fe958f415e85..0812b844eb9c 100644
--- a/drivers/tty/serial/ifx6x60.c
+++ b/drivers/tty/serial/ifx6x60.c
@@ -1242,6 +1242,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), (void *)ifx_dev);
free_irq(gpio_to_irq(ifx_dev->gpio.srdy), (void *)ifx_dev);