mediatek: fixes kernel 5.15 build

Fixes: #12356
This commit is contained in:
coolsnowwolf 2024-07-16 21:28:14 +08:00
parent 062d85f8fd
commit ff2689bd48
2 changed files with 2 additions and 2 deletions

View File

@ -443,7 +443,7 @@ static int mtk_bmt_init_v2(struct device_node *np)
* of whole flash
*/
bmtd.bbt = NULL;
for (u16 block = bmtd.total_blks - 1; !bmtd.bbt && block >= bmtd.pool_lba; block--) {
for (block = bmtd.total_blks - 1; !bmtd.bbt && block >= bmtd.pool_lba; block--) {
u8 fdm[4];
if (bbt_nand_read(blk_pg(block), bmtd.bbt_buf, bufsz, fdm, sizeof(fdm))) {

View File

@ -2,7 +2,7 @@ ARCH:=aarch64
SUBTARGET:=filogic
BOARDNAME:=Filogic 8x0 (MT798x)
CPU_TYPE:=cortex-a53
DEFAULT_PACKAGES += fitblk kmod-crypto-hw-safexcel kmod-mt7915e wpad-openssl uboot-envtools
DEFAULT_PACKAGES += kmod-crypto-hw-safexcel kmod-mt7915e wpad-openssl uboot-envtools
KERNELNAME:=Image dtbs
define Target/Description