Skip to content

Commit 46f53bd

Browse files
Yang Yingliangbroonie
authored andcommitted
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 <yangyingliang@huawei.com> Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be> Link: https://lore.kernel.org/r/20230816094013.1275068-15-yangyingliang@huawei.com Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent ecd02b6 commit 46f53bd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/spi/spi-rpc-if.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ static int rpcif_spi_probe(struct platform_device *pdev)
134134
struct rpcif *rpc;
135135
int error;
136136

137-
ctlr = devm_spi_alloc_master(&pdev->dev, sizeof(*rpc));
137+
ctlr = devm_spi_alloc_host(&pdev->dev, sizeof(*rpc));
138138
if (!ctlr)
139139
return -ENOMEM;
140140

0 commit comments

Comments
 (0)