]> www.infradead.org Git - linux.git/commitdiff
staging: greybus: spi: switch to use spi_alloc_host()
authorYang Yingliang <yangyingliang@huawei.com>
Mon, 2 Sep 2024 12:59:46 +0000 (20:59 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 3 Sep 2024 08:32:50 +0000 (10:32 +0200)
Switch to use modern name function spi_alloc_host().

No functional changed.

Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
Link: https://lore.kernel.org/r/20240902125947.1368-7-yangyingliang@huaweicloud.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/greybus/spilib.c

index 0e4ae01eb00ff25734cab8c3c070dff5fdfea10a..24e9c909fa0211b3e2efb37a91adde76980853bf 100644 (file)
@@ -490,10 +490,10 @@ int gb_spilib_master_init(struct gb_connection *connection, struct device *dev,
        int ret;
        u8 i;
 
-       /* Allocate master with space for data */
-       ctlr = spi_alloc_master(dev, sizeof(*spi));
+       /* Allocate host with space for data */
+       ctlr = spi_alloc_host(dev, sizeof(*spi));
        if (!ctlr) {
-               dev_err(dev, "cannot alloc SPI master\n");
+               dev_err(dev, "cannot alloc SPI host\n");
                return -ENOMEM;
        }