Skip to content

Commit

Permalink
spi: bcmbca-hsspi: Fix error code in probe() function
Browse files Browse the repository at this point in the history
This code accidentally returns success instead of a negative error code.

Fixes: a38a223 ("spi: bcmbca-hsspi: Add driver for newer HSSPI controller")
Signed-off-by: Dan Carpenter <error27@gmail.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Reviewed-by: William Zhang <william.zhang@broadcom.com>
Link: https://lore.kernel.org/r/Y+zmrNJ9zjNQpzWq@kili
Signed-off-by: Mark Brown <broonie@kernel.org>
  • Loading branch information
Dan Carpenter authored and Mark Brown committed Feb 15, 2023
1 parent e6a0b67 commit 0696532
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/spi/spi-bcmbca-hsspi.c
Original file line number Diff line number Diff line change
Expand Up @@ -548,7 +548,8 @@ static int bcmbca_hsspi_probe(struct platform_device *pdev)

pm_runtime_enable(&pdev->dev);

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

0 comments on commit 0696532

Please sign in to comment.