spi: cs42l43: 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> Link: https://msgid.link/r/20231128093031.3707034-26-yangyingliang@huawei.com Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
ca6f114372
commit
a23271718e
@ -213,7 +213,7 @@ static int cs42l43_spi_probe(struct platform_device *pdev)
|
||||
if (!priv)
|
||||
return -ENOMEM;
|
||||
|
||||
priv->ctlr = devm_spi_alloc_master(&pdev->dev, sizeof(*priv->ctlr));
|
||||
priv->ctlr = devm_spi_alloc_host(&pdev->dev, sizeof(*priv->ctlr));
|
||||
if (!priv->ctlr)
|
||||
return -ENOMEM;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user