mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-26 05:34:13 +08:00
spi: spi-fsl-dspi: Fix error handling
According to error handling in this function, it is likely that going to 'out_master_put' was expected here. Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr> Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
fafd679407
commit
fbad6c2439
@ -1002,7 +1002,8 @@ static int dspi_probe(struct platform_device *pdev)
|
||||
if (IS_ERR(dspi->regmap)) {
|
||||
dev_err(&pdev->dev, "failed to init regmap: %ld\n",
|
||||
PTR_ERR(dspi->regmap));
|
||||
return PTR_ERR(dspi->regmap);
|
||||
ret = PTR_ERR(dspi->regmap);
|
||||
goto out_master_put;
|
||||
}
|
||||
|
||||
dspi_init(dspi);
|
||||
|
Loading…
Reference in New Issue
Block a user