Skip to content

Commit

Permalink
spi: bcm63xx-hsspi: fix error code in probe
Browse files Browse the repository at this point in the history
This code accidentally returns success instead of a negative error code.

Fixes: 50a6620 ("spi: bcm63xx-hsspi: Add polling mode support")
Signed-off-by: Dan Carpenter <error27@gmail.com>
Reviewed-by: William Zhang <william.zhang@broadcom.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Link: https://lore.kernel.org/r/Y+zmoGH6LubPhiI0@kili
Signed-off-by: Mark Brown <broonie@kernel.org>
  • Loading branch information
Dan Carpenter authored and Mark Brown committed Feb 15, 2023
1 parent 0696532 commit 97b7cea
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/spi/spi-bcm63xx-hsspi.c
Original file line number Diff line number Diff line change
Expand Up @@ -849,7 +849,8 @@ static int bcm63xx_hsspi_probe(struct platform_device *pdev)

pm_runtime_enable(&pdev->dev);

if (sysfs_create_group(&pdev->dev.kobj, &bcm63xx_hsspi_group)) {
ret = sysfs_create_group(&pdev->dev.kobj, &bcm63xx_hsspi_group);
if (ret) {
dev_err(&pdev->dev, "couldn't register sysfs group\n");
goto out_pm_disable;
}
Expand Down

0 comments on commit 97b7cea

Please sign in to comment.