2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-16 17:23:55 +08:00

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

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

Fixes: a38a2233f2 ("spi: bcmbca-hsspi: Add driver for newer HSSPI controller")
Signed-off-by: Dan Carpenter <error27@gmail.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Reviewed-by: William Zhang <william.zhang@broadcom.com>
Link: https://lore.kernel.org/r/Y+zmrNJ9zjNQpzWq@kili
Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
Dan Carpenter 2023-02-15 17:05:32 +03:00 committed by Mark Brown
parent e6a0b67188
commit 0696532e12
No known key found for this signature in database
GPG Key ID: 24D68B725D5487D0

View File

@ -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;
}