mirror of
https://github.com/torvalds/linux.git
synced 2024-11-12 23:23:03 +00:00
spi: fsi: 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/20230807124105.3429709-6-yangyingliang@huawei.com Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
45d9591105
commit
d40f10d009
@ -542,7 +542,7 @@ static int fsi_spi_probe(struct device *dev)
|
|||||||
if (of_property_read_u32(np, "reg", &base))
|
if (of_property_read_u32(np, "reg", &base))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
ctlr = spi_alloc_master(dev, sizeof(*ctx));
|
ctlr = spi_alloc_host(dev, sizeof(*ctx));
|
||||||
if (!ctlr) {
|
if (!ctlr) {
|
||||||
of_node_put(np);
|
of_node_put(np);
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user