diff options
Diffstat (limited to 'drivers/firmware/sigma.c')
-rw-r--r-- | drivers/firmware/sigma.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/firmware/sigma.c b/drivers/firmware/sigma.c index 36265de0a9e8..1eedb6f7fdab 100644 --- a/drivers/firmware/sigma.c +++ b/drivers/firmware/sigma.c | |||
@@ -133,7 +133,7 @@ int process_sigma_firmware(struct i2c_client *client, const char *name) | |||
133 | crc = crc32(0, fw->data + sizeof(*ssfw_head), | 133 | crc = crc32(0, fw->data + sizeof(*ssfw_head), |
134 | fw->size - sizeof(*ssfw_head)); | 134 | fw->size - sizeof(*ssfw_head)); |
135 | pr_debug("%s: crc=%x\n", __func__, crc); | 135 | pr_debug("%s: crc=%x\n", __func__, crc); |
136 | if (crc != ssfw_head->crc) | 136 | if (crc != le32_to_cpu(ssfw_head->crc)) |
137 | goto done; | 137 | goto done; |
138 | 138 | ||
139 | ssfw.pos = sizeof(*ssfw_head); | 139 | ssfw.pos = sizeof(*ssfw_head); |