diff options
author | Dan Carpenter <error27@gmail.com> | 2023-02-15 15:05:20 +0100 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2023-02-15 23:29:51 +0100 |
commit | 97b7cea04f52c3263a74b945a4738f678181b117 (patch) | |
tree | f2f46d55a3713d91780d3994a9794277f066494d /drivers/spi | |
parent | spi: bcmbca-hsspi: Fix error code in probe() function (diff) | |
download | linux-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.c | 3 |
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; } |