Commit 0fc8a1a4 authored by Yang Yingliang's avatar Yang Yingliang Committed by Mark Brown

spi: mux: switch to use spi_alloc_host()

Switch to use modern name function spi_alloc_host().

No functional changed.
Signed-off-by: default avatarYang Yingliang <yangyingliang@huawei.com>
Link: https://lore.kernel.org/r/20230823033003.3407403-15-yangyingliang@huawei.comSigned-off-by: default avatarMark Brown <broonie@kernel.org>
parent efdf4c99
...@@ -129,7 +129,7 @@ static int spi_mux_probe(struct spi_device *spi) ...@@ -129,7 +129,7 @@ static int spi_mux_probe(struct spi_device *spi)
struct spi_mux_priv *priv; struct spi_mux_priv *priv;
int ret; int ret;
ctlr = spi_alloc_master(&spi->dev, sizeof(*priv)); ctlr = spi_alloc_host(&spi->dev, sizeof(*priv));
if (!ctlr) if (!ctlr)
return -ENOMEM; return -ENOMEM;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment