forked from luck/tmp_suning_uos_patched
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