Merge tag 'kbuild-v5.12' of git://git.kernel.org/pub/scm/linux/kernel/git/masahiroy...
[linux-2.6-microblaze.git] / drivers / spi / spi-atmel.c
index 948396b..f429436 100644 (file)
@@ -1590,7 +1590,7 @@ static int atmel_spi_probe(struct platform_device *pdev)
                if (ret == 0) {
                        as->use_dma = true;
                } else if (ret == -EPROBE_DEFER) {
-                       return ret;
+                       goto out_unmap_regs;
                }
        } else if (as->caps.has_pdc_support) {
                as->use_pdc = true;