mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-31 04:01:48 -04:00
spi: npcm: Fix an error code in the probe function
There is an IS_ERR() vs PTR_ERR() typo here. The current code returns 1
but we want to return the negative error code.
Fixes: 2a22f1b30c ("spi: npcm: add NPCM PSPI controller driver")
Signed-off-by: Dan Carpenter <[email protected]>
Signed-off-by: Mark Brown <[email protected]>
This commit is contained in:
parent
f0915dfc44
commit
428f977a6a
1 changed files with 1 additions and 1 deletions
|
|
@ -381,7 +381,7 @@ static int npcm_pspi_probe(struct platform_device *pdev)
|
|||
syscon_regmap_lookup_by_compatible("nuvoton,npcm750-rst");
|
||||
if (IS_ERR(priv->rst_regmap)) {
|
||||
dev_err(&pdev->dev, "failed to find nuvoton,npcm750-rst\n");
|
||||
return IS_ERR(priv->rst_regmap);
|
||||
return PTR_ERR(priv->rst_regmap);
|
||||
}
|
||||
|
||||
/* reset SPI-HW block */
|
||||
|
|
|
|||
Loading…
Reference in a new issue