X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=drivers%2Fmmc%2Frpmb.c;h=0b6b6222bdce9ae7c44a4510d01dfa18de40c22c;hb=3dde8f20377c3a051dda64497bdf0cdb23e03a2d;hp=9d0b8bc0c8f9b41fd91185729e87c3777e8c7a23;hpb=22692ec0fbdb455ca16d4d0e27768c6b6deb4243;p=oweals%2Fu-boot.git diff --git a/drivers/mmc/rpmb.c b/drivers/mmc/rpmb.c index 9d0b8bc0c8..0b6b6222bd 100644 --- a/drivers/mmc/rpmb.c +++ b/drivers/mmc/rpmb.c @@ -10,6 +10,7 @@ #include #include +#include #include #include #include "mmc_private.h" @@ -66,7 +67,7 @@ struct s_rpmb { unsigned char mac[RPMB_SZ_MAC]; unsigned char data[RPMB_SZ_DATA]; unsigned char nonce[RPMB_SZ_NONCE]; - unsigned long write_counter; + unsigned int write_counter; unsigned short address; unsigned short block_count; unsigned short result;