diff options
| author | Yang Yingliang <[email protected]> | 2023-08-16 09:40:03 +0000 |
|---|---|---|
| committer | Mark Brown <[email protected]> | 2023-08-16 11:58:08 +0000 |
| commit | 46f53bde6e69edf8a2e0943babb3f160b30ee436 (patch) | |
| tree | b80d20c4fd0f619bbd8bc189f6ef372d4059b0ee /drivers/spi/spi-rpc-if.c | |
| parent | spi: dw-mmio: keep old name same as documentation (diff) | |
| download | kernel-46f53bde6e69edf8a2e0943babb3f160b30ee436.tar.gz kernel-46f53bde6e69edf8a2e0943babb3f160b30ee436.zip | |
spi: rpc-if: switch to use devm_spi_alloc_host()
Switch to use modern name function devm_spi_alloc_host().
No functional changed.
Signed-off-by: Yang Yingliang <[email protected]>
Reviewed-by: Geert Uytterhoeven <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'drivers/spi/spi-rpc-if.c')
| -rw-r--r-- | drivers/spi/spi-rpc-if.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/spi/spi-rpc-if.c b/drivers/spi/spi-rpc-if.c index 2f78124a1b59..e11146932828 100644 --- a/drivers/spi/spi-rpc-if.c +++ b/drivers/spi/spi-rpc-if.c @@ -134,7 +134,7 @@ static int rpcif_spi_probe(struct platform_device *pdev) struct rpcif *rpc; int error; - ctlr = devm_spi_alloc_master(&pdev->dev, sizeof(*rpc)); + ctlr = devm_spi_alloc_host(&pdev->dev, sizeof(*rpc)); if (!ctlr) return -ENOMEM; |
