]> git.baikalelectronics.ru Git - uboot.git/commit
mtd: nand: Fix MediaTek MT7621 SoC build
authorMichael Trimarchi <michael@amarulasolutions.com>
Fri, 22 Jul 2022 08:28:36 +0000 (10:28 +0200)
committerMichael Trimarchi <michael@amarulasolutions.com>
Fri, 22 Jul 2022 11:29:06 +0000 (13:29 +0200)
commita7027a78c436af9fdbb4dbeba346c8067eaefb01
tree0a9fce684493ab3f8d8d6ecb971c2fe64583c191
parentd501f1fe01eecdb79248f132f0b925262a516147
mtd: nand: Fix MediaTek MT7621 SoC build

nand_get_flash_type was reworked in commit c045ea686841b2. This change
break the Mediatek MT721. Fix it adjust the function call parameters

+include/linux/mtd/rawnand.h:32:62: note: expected 'struct nand_chip *' but argument is of type 'struct mtd_info *'
+   32 | struct nand_flash_dev *nand_get_flash_type(struct nand_chip *chip,
+      |                                            ~~~~~~~~~~~~~~~~~~^~~~
+drivers/mtd/nand/raw/mt7621_nand.c:1189:48: error: passing argument 2 of 'nand_get_flash_type' from incompatible pointer type [-Werror=incompatible-pointer-types]
+      |                                                ^~~~
+      |                                                |
+      |                                                struct nand_chip *
+include/linux/mtd/rawnand.h:33:49: note: expected 'int *' but argument is of type 'struct nand_chip *'
+   33 |                                            int *maf_id, int *dev_id,

Signed-off-by: Michael Trimarchi <michael@amarulasolutions.com>
Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com>
drivers/mtd/nand/raw/mt7621_nand.c