diff options
author | Cezary Gapinski <cezary.gapinski@gmail.com> | 2018-12-24 23:00:28 +0100 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2019-01-07 18:23:43 +0000 |
commit | d4c9134a6c2c85d18b0d58accdf0e9be447f77a3 (patch) | |
tree | 58503a95df0d9951582ad0c6c95af532feb17996 | |
parent | d57a984ff7aa1f8aac617c5ccfcd4cca061d2eb3 (diff) | |
download | linux-d4c9134a6c2c85d18b0d58accdf0e9be447f77a3.tar.bz2 |
spi: stm32: use NULL pointer instead of plain integer
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>
-rw-r--r-- | drivers/spi/spi-stm32.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/spi/spi-stm32.c b/drivers/spi/spi-stm32.c index 5f30578a4224..51d7f720127b 100644 --- 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); |