Merge tag 'for-5.12/dm-fixes-3' of git://git.kernel.org/pub/scm/linux/kernel/git...
[linux-2.6-microblaze.git] / drivers / spi / spi-sprd-adi.c
index 127b8bd..392ec5c 100644 (file)
@@ -504,10 +504,7 @@ static int sprd_adi_probe(struct platform_device *pdev)
                        dev_info(&pdev->dev, "no hardware spinlock supplied\n");
                        break;
                default:
-                       dev_err(&pdev->dev,
-                               "failed to find hwlock id, %d\n", ret);
-                       fallthrough;
-               case -EPROBE_DEFER:
+                       dev_err_probe(&pdev->dev, ret, "failed to find hwlock id\n");
                        goto put_ctlr;
                }
        }