Skip to content

Commit 4bca15a

Browse files
Yang Yingliangbroonie
authored andcommitted
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 <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent 0191e98 commit 4bca15a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/spi/spi-slave-mt27xx.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -388,9 +388,9 @@ static int mtk_spi_slave_probe(struct platform_device *pdev)
388388
int irq, ret;
389389
const struct of_device_id *of_id;
390390

391-
ctlr = spi_alloc_slave(&pdev->dev, sizeof(*mdata));
391+
ctlr = spi_alloc_target(&pdev->dev, sizeof(*mdata));
392392
if (!ctlr) {
393-
dev_err(&pdev->dev, "failed to alloc spi slave\n");
393+
dev_err(&pdev->dev, "failed to alloc spi target\n");
394394
return -ENOMEM;
395395
}
396396

0 commit comments

Comments
 (0)