spi: amlogic-spifc-a1: switch to use devm_spi_alloc_host()
authorYang Yingliang <yangyingliang@huawei.com>
Mon, 7 Aug 2023 12:40:46 +0000 (20:40 +0800)
committerMark Brown <broonie@kernel.org>
Mon, 14 Aug 2023 12:10:48 +0000 (13:10 +0100)
Switch to use modern name function devm_spi_alloc_host().

No functional changed.

Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
Link: https://lore.kernel.org/r/20230807124105.3429709-2-yangyingliang@huawei.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-amlogic-spifc-a1.c

index 605e9e40455ce26c216b4d1e4b5cd421df5b9cb9..fadf6667cd51c40a29749b378b82161a337edc62 100644 (file)
@@ -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;