Commit 97b7cea0 authored by Dan Carpenter's avatar Dan Carpenter Committed by Mark Brown

spi: bcm63xx-hsspi: fix error code in probe

This code accidentally returns success instead of a negative error code.

Fixes: 50a6620d ("spi: bcm63xx-hsspi: Add polling mode support")
Signed-off-by: default avatarDan Carpenter <error27@gmail.com>
Reviewed-by: default avatarWilliam Zhang <william.zhang@broadcom.com>
Reviewed-by: default avatarFlorian Fainelli <f.fainelli@gmail.com>
Link: https://lore.kernel.org/r/Y+zmoGH6LubPhiI0@kiliSigned-off-by: default avatarMark Brown <broonie@kernel.org>
parent 0696532e
......@@ -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;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment