]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
fix QE firmware uploading limit
authorTimur Tabi <timur@freescale.com>
Mon, 3 Mar 2008 15:58:52 +0000 (09:58 -0600)
committerWolfgang Denk <wd@denx.de>
Mon, 3 Mar 2008 21:10:11 +0000 (22:10 +0100)
Fix a typo in qe_upload_firmware() that prevented uploading firmware on
systems with more than one RISC core.

Signed-off-by: Timur Tabi <timur@freescale.com>
drivers/qe/qe.c

index 63acfa3d15e5357ad27b011dd192ffe4f1dbcfed..7b6ecd753d2b76c4ffadb172386d80b346b0a84e 100644 (file)
@@ -334,7 +334,7 @@ int qe_upload_firmware(const struct qe_firmware *firmware)
        }
 
        /* Validate some of the fields */
-       if ((firmware->count < 1) || (firmware->count >= MAX_QE_RISC)) {
+       if ((firmware->count < 1) || (firmware->count > MAX_QE_RISC)) {
                printf("Invalid data\n");
                return -EINVAL;
        }