mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-19 12:00:00 +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;
|
struct ljca_spi_dev *ljca_spi;
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
controller = devm_spi_alloc_master(&auxdev->dev, sizeof(*ljca_spi));
|
controller = devm_spi_alloc_host(&auxdev->dev, sizeof(*ljca_spi));
|
||||||
if (!controller)
|
if (!controller)
|
||||||
return -ENOMEM;
|
return -ENOMEM;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user