mirror of
https://github.com/tbsdtv/linux_media.git
synced 2025-07-22 12:21:00 +02:00
media: usb/msi2500: 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://patch.msgid.link/20240902125947.1368-2-yangyingliang@huaweicloud.com Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
@@ -1219,8 +1219,8 @@ static int msi2500_probe(struct usb_interface *intf,
|
||||
goto err_free_mem;
|
||||
}
|
||||
|
||||
/* SPI master adapter */
|
||||
ctlr = spi_alloc_master(dev->dev, 0);
|
||||
/* SPI host adapter */
|
||||
ctlr = spi_alloc_host(dev->dev, 0);
|
||||
if (ctlr == NULL) {
|
||||
ret = -ENOMEM;
|
||||
goto err_unregister_v4l2_dev;
|
||||
|
Reference in New Issue
Block a user