ARM: SPRD: fix build warnings for sc8830
[profile/mobile/platform/kernel/u-boot-tm1.git] / arch / arm / cpu / armv7 / sc8830 / sec_boot.c
index 6c08c73..c6c5412 100644 (file)
@@ -295,7 +295,7 @@ int harshVerify(uint8_t * data, uint32_t data_len, uint8_t * data_hash, uint8_t
        bsc_info = (bsc_info_t *) data_key;
        SHA1Reset_32(&sha);
        SHA1Input_32(&sha, (uint32_t *) data, data_len >> 2);
-       SHA1Result_32(&sha, soft_hash_data);
+       SHA1Result_32(&sha, (unsigned char *)soft_hash_data);
        memcpy(hash_copy, vlr_info->hash, sizeof(vlr_info->hash));
 
        RSA_Decrypt(hash_copy, bsc_info->key.m, bsc_info->key.r2, (unsigned char *)(&bsc_info->key.e));