.. | .. |
---|
19 | 19 | |
---|
20 | 20 | #include <linux/mtd/mtd.h> |
---|
21 | 21 | #include <linux/mtd/physmap.h> |
---|
22 | | -#include <linux/mtd/rawnand.h> |
---|
23 | | -#include <linux/mtd/partitions.h> |
---|
| 22 | +#include <linux/mtd/platnand.h> |
---|
24 | 23 | |
---|
25 | 24 | #include <asm/netlogic/haldefs.h> |
---|
26 | 25 | #include <asm/netlogic/xlr/iomap.h> |
---|
.. | .. |
---|
92 | 91 | |
---|
93 | 92 | static struct xlr_nand_flash_priv nand_priv; |
---|
94 | 93 | |
---|
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) |
---|
97 | 96 | { |
---|
98 | 97 | if (ctrl & NAND_CLE) |
---|
99 | 98 | nlm_write_reg(nand_priv.flash_mmio, |
---|