hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/arch/mips/netlogic/xlr/platform-flash.c
....@@ -19,8 +19,7 @@
1919
2020 #include <linux/mtd/mtd.h>
2121 #include <linux/mtd/physmap.h>
22
-#include <linux/mtd/rawnand.h>
23
-#include <linux/mtd/partitions.h>
22
+#include <linux/mtd/platnand.h>
2423
2524 #include <asm/netlogic/haldefs.h>
2625 #include <asm/netlogic/xlr/iomap.h>
....@@ -92,8 +91,8 @@
9291
9392 static struct xlr_nand_flash_priv nand_priv;
9493
95
-static void xlr_nand_ctrl(struct mtd_info *mtd, int cmd,
96
- unsigned int ctrl)
94
+static void xlr_nand_ctrl(struct nand_chip *chip, int cmd,
95
+ unsigned int ctrl)
9796 {
9897 if (ctrl & NAND_CLE)
9998 nlm_write_reg(nand_priv.flash_mmio,