Commit d4c9134a authored by Cezary Gapinski's avatar Cezary Gapinski Committed by Mark Brown

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: default avatarCezary Gapinski <cezary.gapinski@gmail.com>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent d57a984f
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment