diff mbox series

[-next,26/26] spi: ljca: switch to use devm_spi_alloc_host()

Message ID 20231128093031.3707034-27-yangyingliang@huawei.com
State Accepted
Commit 4ac9ed81aaaab128b98855cd6005a52fa65dd4da
Headers show
Series spi: switch to use modern name (part5) | expand

Commit Message

Yang Yingliang Nov. 28, 2023, 9:30 a.m. UTC
Switch to use modern name function devm_spi_alloc_host().

No functional changed.

Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
---
 drivers/spi/spi-ljca.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/drivers/spi/spi-ljca.c b/drivers/spi/spi-ljca.c
index c5a066c73817..1cc1422ddba0 100644
--- a/drivers/spi/spi-ljca.c
+++ b/drivers/spi/spi-ljca.c
@@ -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;