[PATCH 29/51] mtd: rawnand: gpmi: Switch to __pm_runtime_put_autosuspend()
Sakari Ailus
sakari.ailus at linux.intel.com
Fri Oct 4 02:41:33 PDT 2024
pm_runtime_put_autosuspend() will soon be changed to include a call to
pm_runtime_mark_last_busy(). This patch switches the current users to
__pm_runtime_put_autosuspend() which will continue to have the
functionality of old pm_runtime_put_autosuspend().
Signed-off-by: Sakari Ailus <sakari.ailus at linux.intel.com>
---
drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c b/drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c
index e1b515304e3c..1a8fe322f5d6 100644
--- a/drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c
+++ b/drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c
@@ -187,7 +187,7 @@ static int gpmi_init(struct gpmi_nand_data *this)
err_out:
pm_runtime_mark_last_busy(this->dev);
- pm_runtime_put_autosuspend(this->dev);
+ __pm_runtime_put_autosuspend(this->dev);
return ret;
}
@@ -739,7 +739,7 @@ static int bch_set_geometry(struct gpmi_nand_data *this)
ret = pm_runtime_get_sync(this->dev);
if (ret < 0) {
- pm_runtime_put_autosuspend(this->dev);
+ __pm_runtime_put_autosuspend(this->dev);
return ret;
}
@@ -758,7 +758,7 @@ static int bch_set_geometry(struct gpmi_nand_data *this)
ret = 0;
err_out:
pm_runtime_mark_last_busy(this->dev);
- pm_runtime_put_autosuspend(this->dev);
+ __pm_runtime_put_autosuspend(this->dev);
return ret;
}
@@ -2664,7 +2664,7 @@ static int gpmi_nfc_exec_op(struct nand_chip *chip,
out_pm:
pm_runtime_mark_last_busy(this->dev);
- pm_runtime_put_autosuspend(this->dev);
+ __pm_runtime_put_autosuspend(this->dev);
return ret;
}
@@ -2780,7 +2780,7 @@ static int gpmi_nand_probe(struct platform_device *pdev)
goto exit_nfc_init;
pm_runtime_mark_last_busy(&pdev->dev);
- pm_runtime_put_autosuspend(&pdev->dev);
+ __pm_runtime_put_autosuspend(&pdev->dev);
dev_info(this->dev, "driver registered.\n");
--
2.39.5
More information about the linux-mtd
mailing list