summaryrefslogtreecommitdiffstats
path: root/drivers/spi
diff options
context:
space:
mode:
authorYang Yingliang <yangyingliang@huawei.com>2023-08-18 17:31:45 +0800
committerMark Brown <broonie@kernel.org>2023-08-21 14:29:30 +0100
commit1405efe76f2a242832a53b56deda15f17d51219b (patch)
tree066cac13e12d9864e7cf5b65b36548b42b5b427b /drivers/spi
parent1a3ccff3bc39acc04e69e3a65833d474471598ec (diff)
downloadlinux-stable-1405efe76f2a242832a53b56deda15f17d51219b.tar.gz
linux-stable-1405efe76f2a242832a53b56deda15f17d51219b.tar.bz2
linux-stable-1405efe76f2a242832a53b56deda15f17d51219b.zip
spi: rspi: switch to use spi_alloc_host()
Switch to use modern name function 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/20230818093154.1183529-15-yangyingliang@huawei.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/spi')
-rw-r--r--drivers/spi/spi-rspi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/spi/spi-rspi.c b/drivers/spi/spi-rspi.c
index 83bb16995e06..8e81f1a8623f 100644
--- a/drivers/spi/spi-rspi.c
+++ b/drivers/spi/spi-rspi.c
@@ -1294,7 +1294,7 @@ static int rspi_probe(struct platform_device *pdev)
const struct spi_ops *ops;
unsigned long clksrc;
- ctlr = spi_alloc_master(&pdev->dev, sizeof(struct rspi_data));
+ ctlr = spi_alloc_host(&pdev->dev, sizeof(struct rspi_data));
if (ctlr == NULL)
return -ENOMEM;