|
@@ -646,6 +646,13 @@ static int ti_qspi_probe(struct platform_device *pdev)
|
|
|
|
|
|
|
|
static int ti_qspi_remove(struct platform_device *pdev)
|
|
static int ti_qspi_remove(struct platform_device *pdev)
|
|
|
{
|
|
{
|
|
|
|
|
+ struct ti_qspi *qspi = platform_get_drvdata(pdev);
|
|
|
|
|
+ int rc;
|
|
|
|
|
+
|
|
|
|
|
+ rc = spi_master_suspend(qspi->master);
|
|
|
|
|
+ if (rc)
|
|
|
|
|
+ return rc;
|
|
|
|
|
+
|
|
|
pm_runtime_put_sync(&pdev->dev);
|
|
pm_runtime_put_sync(&pdev->dev);
|
|
|
pm_runtime_disable(&pdev->dev);
|
|
pm_runtime_disable(&pdev->dev);
|
|
|
|
|
|