projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d57a984
)
spi: stm32: use NULL pointer instead of plain integer
author
Cezary Gapinski
<cezary.gapinski@gmail.com>
Mon, 24 Dec 2018 22:00:28 +0000
(23:00 +0100)
committer
Mark Brown
<broonie@kernel.org>
Mon, 7 Jan 2019 18:23:43 +0000
(18:23 +0000)
Patch fixes sparse warning: Using plain integer as NULL pointer. Replaces
second argument of function devm_clk_get from 0 to NULL.
Signed-off-by: Cezary Gapinski <cezary.gapinski@gmail.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-stm32.c
patch
|
blob
|
history
diff --git
a/drivers/spi/spi-stm32.c
b/drivers/spi/spi-stm32.c
index 5f30578a4224a5712d1b44be29361fb30bfdaf26..51d7f720127b1fdd6f303b26740ace0cbec9b556 100644
(file)
--- a/
drivers/spi/spi-stm32.c
+++ b/
drivers/spi/spi-stm32.c
@@
-1100,7
+1100,7
@@
static int stm32_spi_probe(struct platform_device *pdev)
goto err_master_put;
}
- spi->clk = devm_clk_get(&pdev->dev,
0
);
+ spi->clk = devm_clk_get(&pdev->dev,
NULL
);
if (IS_ERR(spi->clk)) {
ret = PTR_ERR(spi->clk);
dev_err(&pdev->dev, "clk get failed: %d\n", ret);