Skip to content

Commit 97b7cea

Browse files
error27broonie
authored andcommitted
spi: bcm63xx-hsspi: fix error code in probe
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 <[email protected]> Reviewed-by: William Zhang <[email protected]> Reviewed-by: Florian Fainelli <[email protected]> Link: https://lore.kernel.org/r/Y+zmoGH6LubPhiI0@kili Signed-off-by: Mark Brown <[email protected]>
1 parent 0696532 commit 97b7cea

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/spi/spi-bcm63xx-hsspi.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -849,7 +849,8 @@ static int bcm63xx_hsspi_probe(struct platform_device *pdev)
849849

850850
pm_runtime_enable(&pdev->dev);
851851

852-
if (sysfs_create_group(&pdev->dev.kobj, &bcm63xx_hsspi_group)) {
852+
ret = sysfs_create_group(&pdev->dev.kobj, &bcm63xx_hsspi_group);
853+
if (ret) {
853854
dev_err(&pdev->dev, "couldn't register sysfs group\n");
854855
goto out_pm_disable;
855856
}

0 commit comments

Comments
 (0)