mmc: fsl_esdhc: workaround for hardware 3.3v IO reliability issue
[oweals/u-boot.git] / drivers / fpga / cyclon2.c
index ab979b017a2628a32fc7d3522a6bb89639223f8f..3b008facb8c4daeb59aacb0140a15f40b21df18e 100644 (file)
@@ -8,6 +8,7 @@
 #include <common.h>            /* core U-Boot definitions */
 #include <altera.h>
 #include <ACEX1K.h>            /* ACEX device family */
+#include <linux/delay.h>
 
 /* Define FPGA_DEBUG to get debug printf's */
 #ifdef FPGA_DEBUG
@@ -183,8 +184,12 @@ static int CYC2_ps_load(Altera_desc *desc, const void *buf, size_t bsize)
                else
                        puts("Fail.\n");
 #endif
-               (*fn->post) (cookie);
 
+               /*
+                * Run the post configuration function if there is one.
+                */
+               if (*fn->post)
+                       (*fn->post) (cookie);
        } else {
                printf("%s: NULL Interface function table!\n", __func__);
        }