mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-02-20 01:21:21 -05:00
spi: slave-mt27xx: switch to use spi_alloc_target()
Switch to use modern name function spi_alloc_target(). No functional changed. Signed-off-by: Yang Yingliang <yangyingliang@huawei.com> Link: https://patch.msgid.link/20240902125947.1368-5-yangyingliang@huaweicloud.com Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
committed by
Mark Brown
parent
0191e98ae6
commit
4bca15a56e
@@ -388,9 +388,9 @@ static int mtk_spi_slave_probe(struct platform_device *pdev)
|
||||
int irq, ret;
|
||||
const struct of_device_id *of_id;
|
||||
|
||||
ctlr = spi_alloc_slave(&pdev->dev, sizeof(*mdata));
|
||||
ctlr = spi_alloc_target(&pdev->dev, sizeof(*mdata));
|
||||
if (!ctlr) {
|
||||
dev_err(&pdev->dev, "failed to alloc spi slave\n");
|
||||
dev_err(&pdev->dev, "failed to alloc spi target\n");
|
||||
return -ENOMEM;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user