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 <[email protected]> Reviewed-by: Geert Uytterhoeven <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent ecd02b6 commit 46f53bd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)