spl: Convert spl_ubi_load_image() to use linker list
[platform/kernel/u-boot.git] / common / spl / spl_ubi.c
index d64e6cf..3ef00aa 100644 (file)
@@ -76,3 +76,6 @@ out:
 #endif
        return ret;
 }
+/* Use priorty 0 so that Ubi will override NAND and ONENAND methods */
+SPL_LOAD_IMAGE_METHOD(0, BOOT_DEVICE_NAND, spl_ubi_load_image);
+SPL_LOAD_IMAGE_METHOD(0, BOOT_DEVICE_ONENAND, spl_ubi_load_image);