summaryrefslogtreecommitdiffstats
path: root/drivers/spi
diff options
context:
space:
mode:
authorDan Carpenter <error27@gmail.com>2023-02-15 15:05:20 +0100
committerMark Brown <broonie@kernel.org>2023-02-15 23:29:51 +0100
commit97b7cea04f52c3263a74b945a4738f678181b117 (patch)
treef2f46d55a3713d91780d3994a9794277f066494d /drivers/spi
parentspi: bcmbca-hsspi: Fix error code in probe() function (diff)
downloadlinux-97b7cea04f52c3263a74b945a4738f678181b117.tar.xz
linux-97b7cea04f52c3263a74b945a4738f678181b117.zip
spi: bcm63xx-hsspi: fix error code in probe
This code accidentally returns success instead of a negative error code. Fixes: 50a6620dd1fb ("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>
Diffstat (limited to 'drivers/spi')
-rw-r--r--drivers/spi/spi-bcm63xx-hsspi.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/spi/spi-bcm63xx-hsspi.c b/drivers/spi/spi-bcm63xx-hsspi.c
index 68093c045e0b..cd0a6478f5e7 100644
--- a/drivers/spi/spi-bcm63xx-hsspi.c
+++ b/drivers/spi/spi-bcm63xx-hsspi.c
@@ -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;
}