mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-04 04:02:26 +00:00
spi: ljca: 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-27-yangyingliang@huawei.com Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
a23271718e
commit
4ac9ed81aa
@ -223,7 +223,7 @@ static int ljca_spi_probe(struct auxiliary_device *auxdev,
|
||||
struct ljca_spi_dev *ljca_spi;
|
||||
int ret;
|
||||
|
||||
controller = devm_spi_alloc_master(&auxdev->dev, sizeof(*ljca_spi));
|
||||
controller = devm_spi_alloc_host(&auxdev->dev, sizeof(*ljca_spi));
|
||||
if (!controller)
|
||||
return -ENOMEM;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user