summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Carpenter <error27@gmail.com>2023-02-15 17:05:32 +0300
committerMark Brown <broonie@kernel.org>2023-02-15 22:29:50 +0000
commit0696532e12524855fa8044590d374079f271f216 (patch)
tree1dcdcf15236aa8178871254746a236cf339cd8b2
parente6a0b671880207566e1ece983bf989dde60bc1d7 (diff)
spi: bcmbca-hsspi: Fix error code in probe() function
This code accidentally returns success instead of a negative error code. Fixes: a38a2233f23b ("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>
-rw-r--r--drivers/spi/spi-bcmbca-hsspi.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/spi/spi-bcmbca-hsspi.c b/drivers/spi/spi-bcmbca-hsspi.c
index e255241319ab..3f9e6131ad86 100644
--- a/drivers/spi/spi-bcmbca-hsspi.c
+++ b/drivers/spi/spi-bcmbca-hsspi.c
@@ -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;
}