diff options
| author | Geert Uytterhoeven <[email protected]> | 2022-11-23 14:41:22 +0000 |
|---|---|---|
| committer | Krzysztof Kozlowski <[email protected]> | 2023-01-23 10:48:00 +0000 |
| commit | 27e5f98c30d73cdb8c8baeaf7d0af19af5266d3a (patch) | |
| tree | 3896fdb647123653a1fe59821d522bbfd390304d /drivers/spi/spi-rpc-if.c | |
| parent | memory: renesas-rpc-if: Pass device instead of rpcif to rpcif_*() (diff) | |
| download | kernel-27e5f98c30d73cdb8c8baeaf7d0af19af5266d3a.tar.gz kernel-27e5f98c30d73cdb8c8baeaf7d0af19af5266d3a.zip | |
memory: renesas-rpc-if: Remove Runtime PM wrappers
Now the rpcif_{en,dis}able_rpm() wrappers just take a pointer to a
device structure, there is no point in keeping them. Remove them, and
update the callers to call Runtime PM directly.
Signed-off-by: Geert Uytterhoeven <[email protected]>
Acked-by: Wolfram Sang <[email protected]>
Link: https://lore.kernel.org/r/d87aa5d7e4a39b18f7e2e0649fee0a45b45d371f.1669213027.git.geert+renesas@glider.be
Signed-off-by: Krzysztof Kozlowski <[email protected]>
Diffstat (limited to 'drivers/spi/spi-rpc-if.c')
| -rw-r--r-- | drivers/spi/spi-rpc-if.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/spi/spi-rpc-if.c b/drivers/spi/spi-rpc-if.c index 5063587d2c72..ec0904faf3a1 100644 --- a/drivers/spi/spi-rpc-if.c +++ b/drivers/spi/spi-rpc-if.c @@ -147,7 +147,7 @@ static int rpcif_spi_probe(struct platform_device *pdev) ctlr->dev.of_node = parent->of_node; - rpcif_enable_rpm(rpc->dev); + pm_runtime_enable(rpc->dev); ctlr->num_chipselect = 1; ctlr->mem_ops = &rpcif_spi_mem_ops; @@ -169,7 +169,7 @@ static int rpcif_spi_probe(struct platform_device *pdev) return 0; out_disable_rpm: - rpcif_disable_rpm(rpc->dev); + pm_runtime_disable(rpc->dev); return error; } @@ -179,7 +179,7 @@ static int rpcif_spi_remove(struct platform_device *pdev) struct rpcif *rpc = spi_controller_get_devdata(ctlr); spi_unregister_controller(ctlr); - rpcif_disable_rpm(rpc->dev); + pm_runtime_disable(rpc->dev); return 0; } |
