projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e6302d0
)
spi: realtek-rtl: switch to use devm_spi_alloc_host()
author
Yang Yingliang
<yangyingliang@huawei.com>
Fri, 18 Aug 2023 09:31:42 +0000
(17:31 +0800)
committer
Mark Brown
<broonie@kernel.org>
Mon, 21 Aug 2023 13:29:28 +0000
(14:29 +0100)
Switch to use modern name function devm_spi_alloc_host().
No functional changed.
Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
Link:
https://lore.kernel.org/r/20230818093154.1183529-12-yangyingliang@huawei.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-realtek-rtl.c
patch
|
blob
|
history
diff --git
a/drivers/spi/spi-realtek-rtl.c
b/drivers/spi/spi-realtek-rtl.c
index 866b0477dbd7846180513829136490f7643850f0..0b0123e20b54745e0965c119dfddc9d4e2ab381d 100644
(file)
--- a/
drivers/spi/spi-realtek-rtl.c
+++ b/
drivers/spi/spi-realtek-rtl.c
@@
-153,7
+153,7
@@
static int realtek_rtl_spi_probe(struct platform_device *pdev)
struct rtspi *rtspi;
int err;
- ctrl = devm_spi_alloc_
master
(&pdev->dev, sizeof(*rtspi));
+ ctrl = devm_spi_alloc_
host
(&pdev->dev, sizeof(*rtspi));
if (!ctrl) {
dev_err(&pdev->dev, "Error allocating SPI controller\n");
return -ENOMEM;