mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2024-12-28 16:53:49 +00:00
spi: sprd-adi: 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://msgid.link/r/20231128093031.3707034-2-yangyingliang@huawei.com Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
f925f69e21
commit
0a3d087d09
@ -528,7 +528,7 @@ static int sprd_adi_probe(struct platform_device *pdev)
|
||||
pdev->id = of_alias_get_id(np, "spi");
|
||||
num_chipselect = of_get_child_count(np);
|
||||
|
||||
ctlr = spi_alloc_master(&pdev->dev, sizeof(struct sprd_adi));
|
||||
ctlr = spi_alloc_host(&pdev->dev, sizeof(struct sprd_adi));
|
||||
if (!ctlr)
|
||||
return -ENOMEM;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user