]> git.sur5r.net Git - u-boot/blobdiff - arch/x86/lib/bootm.c
x86: Misc PCI touchups
[u-boot] / arch / x86 / lib / bootm.c
index 836803cbea3ca5c252bc57150976c1dac66ea19d..bac7b4f0cfb8a3b629e11010073509a2b463191b 100644 (file)
@@ -35,7 +35,7 @@
 int do_bootm_linux(int flag, int argc, char * const argv[],
                bootm_headers_t *images)
 {
-       void            *base_ptr;
+       void            *base_ptr = NULL;
        ulong           os_data, os_len;
        image_header_t  *hdr;
 
@@ -73,8 +73,10 @@ int do_bootm_linux(int flag, int argc, char * const argv[],
                goto error;
        }
 
+#ifdef CONFIG_CMD_ZBOOT
        base_ptr = load_zimage((void *)os_data, os_len,
                        images->rd_start, images->rd_end - images->rd_start, 0);
+#endif
 
        if (NULL == base_ptr) {
                printf("## Kernel loading failed ...\n");