summaryrefslogtreecommitdiff
path: root/drivers/spi/spi-mux.c
diff options
context:
space:
mode:
authorYang Yingliang <yangyingliang@huawei.com>2023-08-23 06:29:56 +0300
committerMark Brown <broonie@kernel.org>2023-09-11 03:31:41 +0300
commit0fc8a1a43122d3775eb2fff2dc4ee9ff7828b15c (patch)
tree42c2693ed27e55e1aa3d7e3edc73332c4d68da36 /drivers/spi/spi-mux.c
parentefdf4c993494a52ee86fc7db83bb257c74cb8184 (diff)
downloadlinux-0fc8a1a43122d3775eb2fff2dc4ee9ff7828b15c.tar.xz
spi: mux: 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> Link: https://lore.kernel.org/r/20230823033003.3407403-15-yangyingliang@huawei.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/spi/spi-mux.c')
-rw-r--r--drivers/spi/spi-mux.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/spi/spi-mux.c b/drivers/spi/spi-mux.c
index fa8c1f740c70..bd988f53753e 100644
--- a/drivers/spi/spi-mux.c
+++ b/drivers/spi/spi-mux.c
@@ -129,7 +129,7 @@ static int spi_mux_probe(struct spi_device *spi)
struct spi_mux_priv *priv;
int ret;
- ctlr = spi_alloc_master(&spi->dev, sizeof(*priv));
+ ctlr = spi_alloc_host(&spi->dev, sizeof(*priv));
if (!ctlr)
return -ENOMEM;