Commit 0696532e authored by Dan Carpenter's avatar Dan Carpenter Committed by Mark Brown

spi: bcmbca-hsspi: Fix error code in probe() function

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

Fixes: a38a2233 ("spi: bcmbca-hsspi: Add driver for newer HSSPI controller")
Signed-off-by: default avatarDan Carpenter <error27@gmail.com>
Reviewed-by: default avatarFlorian Fainelli <f.fainelli@gmail.com>
Reviewed-by: default avatarWilliam Zhang <william.zhang@broadcom.com>
Link: https://lore.kernel.org/r/Y+zmrNJ9zjNQpzWq@kiliSigned-off-by: default avatarMark Brown <broonie@kernel.org>
parent e6a0b671
......@@ -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;
}
......
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