mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-26 21:54:11 +08:00
spi: ch341: switch to use devm_spi_alloc_host()
Switch to use modern name function devm_spi_alloc_host(). No functional changed. Signed-off-by: Yang Yingliang <yangyingliang@huawei.com> Link: https://patch.msgid.link/20240902125947.1368-4-yangyingliang@huaweicloud.com Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
ac2f5bbe80
commit
0191e98ae6
@ -152,7 +152,7 @@ static int ch341_probe(struct usb_interface *intf,
|
||||
if (ret)
|
||||
return ret;
|
||||
|
||||
ctrl = devm_spi_alloc_master(&udev->dev, sizeof(struct ch341_spi_dev));
|
||||
ctrl = devm_spi_alloc_host(&udev->dev, sizeof(struct ch341_spi_dev));
|
||||
if (!ctrl)
|
||||
return -ENOMEM;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user