Message ID | 20230807124105.3429709-2-yangyingliang@huawei.com |
---|---|
State | Accepted |
Commit | 40f78b74b6d425115d1df78516d14c35384172e7 |
Headers | show |
Series | spi: switch to use modern name (part2) | expand |
diff --git a/drivers/spi/spi-amlogic-spifc-a1.c b/drivers/spi/spi-amlogic-spifc-a1.c index 605e9e40455c..fadf6667cd51 100644 --- a/drivers/spi/spi-amlogic-spifc-a1.c +++ b/drivers/spi/spi-amlogic-spifc-a1.c @@ -326,7 +326,7 @@ static int amlogic_spifc_a1_probe(struct platform_device *pdev) struct amlogic_spifc_a1 *spifc; int ret; - ctrl = devm_spi_alloc_master(&pdev->dev, sizeof(*spifc)); + ctrl = devm_spi_alloc_host(&pdev->dev, sizeof(*spifc)); if (!ctrl) return -ENOMEM;
Switch to use modern name function devm_spi_alloc_host(). No functional changed. Signed-off-by: Yang Yingliang <yangyingliang@huawei.com> --- drivers/spi/spi-amlogic-spifc-a1.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)