diff options
author | Timur Tabi <timur@freescale.com> | 2008-03-03 17:11:30 (GMT) |
---|---|---|
committer | Kumar Gala <galak@kernel.crashing.org> | 2008-03-07 14:55:02 (GMT) |
commit | 6f913160fa8e8de5ea2746a2f6b1d65c67e092b0 (patch) | |
tree | f1384597b8402da383df8cb9b34d39ca2bbe5efb /arch/powerpc/sysdev | |
parent | a55387e5ad903dec4e281907e4d8e74679ae60e2 (diff) | |
download | linux-fsl-qoriq-6f913160fa8e8de5ea2746a2f6b1d65c67e092b0.tar.xz |
[POWERPC] QE: Fix QE firmware uploading limit
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>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/sysdev')
-rw-r--r-- | arch/powerpc/sysdev/qe_lib/qe.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/sysdev/qe_lib/qe.c b/arch/powerpc/sysdev/qe_lib/qe.c index 6efbd5e..f963fbf2 100644 --- a/arch/powerpc/sysdev/qe_lib/qe.c +++ b/arch/powerpc/sysdev/qe_lib/qe.c @@ -509,7 +509,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)) { printk(KERN_ERR "qe-firmware: invalid data\n"); return -EINVAL; } |