mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
synced 2026-04-18 03:23:53 -04:00
staging: greybus: spi: switch to use spi_alloc_host()
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>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
357c468552
commit
0348e117d9
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user