diff options
Diffstat (limited to 'drivers/nvmem/u-boot-env.c')
-rw-r--r-- | drivers/nvmem/u-boot-env.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/nvmem/u-boot-env.c b/drivers/nvmem/u-boot-env.c index 4fdbdccebda1..3d86dcd01ecf 100644 --- a/drivers/nvmem/u-boot-env.c +++ b/drivers/nvmem/u-boot-env.c @@ -139,7 +139,7 @@ static int u_boot_env_parse(struct u_boot_env *priv) data_offset = offsetof(struct u_boot_env_image_redundant, data); break; } - crc32 = le32_to_cpu(*(__le32 *)(buf + crc32_offset)); + crc32 = *(uint32_t *)(buf + crc32_offset); crc32_data_len = priv->mtd->size - crc32_data_offset; data_len = priv->mtd->size - data_offset; |