summaryrefslogtreecommitdiff
path: root/drivers/qe/qe.c
diff options
context:
space:
mode:
authorTimur Tabi <timur@freescale.com>2008-03-03 09:58:52 -0600
committerWolfgang Denk <wd@denx.de>2008-03-03 22:10:11 +0100
commit491fb6dea9f52fdb9cb5996e8e978b9e9685179f (patch)
tree39018da2af34d26e6bc458b4ccc634f5b1f1302b /drivers/qe/qe.c
parent42ba58e0c302b339a3c2faa6006a013c6f186b7a (diff)
downloadu-boot-imx-491fb6dea9f52fdb9cb5996e8e978b9e9685179f.zip
u-boot-imx-491fb6dea9f52fdb9cb5996e8e978b9e9685179f.tar.gz
u-boot-imx-491fb6dea9f52fdb9cb5996e8e978b9e9685179f.tar.bz2
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>
Diffstat (limited to 'drivers/qe/qe.c')
-rw-r--r--drivers/qe/qe.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/qe/qe.c b/drivers/qe/qe.c
index 63acfa3..7b6ecd7 100644
--- a/drivers/qe/qe.c
+++ b/drivers/qe/qe.c
@@ -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;
}