diff options
Diffstat (limited to 'drivers')
| -rw-r--r-- | drivers/spi/spi-ti-qspi.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/spi/spi-ti-qspi.c b/drivers/spi/spi-ti-qspi.c index 443f664534e1..29ea8d2f9824 100644 --- a/drivers/spi/spi-ti-qspi.c +++ b/drivers/spi/spi-ti-qspi.c | |||
| @@ -646,6 +646,13 @@ free_master: | |||
| 646 | 646 | ||
| 647 | static int ti_qspi_remove(struct platform_device *pdev) | 647 | static int ti_qspi_remove(struct platform_device *pdev) |
| 648 | { | 648 | { |
| 649 | struct ti_qspi *qspi = platform_get_drvdata(pdev); | ||
| 650 | int rc; | ||
| 651 | |||
| 652 | rc = spi_master_suspend(qspi->master); | ||
| 653 | if (rc) | ||
| 654 | return rc; | ||
| 655 | |||
| 649 | pm_runtime_put_sync(&pdev->dev); | 656 | pm_runtime_put_sync(&pdev->dev); |
| 650 | pm_runtime_disable(&pdev->dev); | 657 | pm_runtime_disable(&pdev->dev); |
| 651 | 658 | ||
