Message ID | 20240902125947.1368-5-yangyingliang@huaweicloud.com (mailing list archive) |
---|---|
State | Accepted |
Commit | 4bca15a56edd7b1c8c8573ddd3dd67424ec15e11 |
Headers | show |
Series | spi: replace and remove {devm_}spi_alloc_master/slave() | expand |
diff --git a/drivers/spi/spi-slave-mt27xx.c b/drivers/spi/spi-slave-mt27xx.c index f1ddf4c099a3..98cbc0c30e45 100644 --- a/drivers/spi/spi-slave-mt27xx.c +++ b/drivers/spi/spi-slave-mt27xx.c @@ -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; }