mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
mtd: nand: kill the chip->flash_node field
Now that the nand_chip struct directly embeds an mtd_info struct we can get rid of the ->flash_node field and forward set/get_flash_node requests to the MTD layer. As a side effect, we no longer need the mtd_set_of_node() call done in nand_dt_init(). Signed-off-by: Boris Brezillon <[email protected]> Signed-off-by: Brian Norris <[email protected]>
This commit is contained in:
parent
7194a29a9b
commit
29574ede09
2 changed files with 2 additions and 8 deletions
|
|
@ -3945,9 +3945,6 @@ static int nand_dt_init(struct nand_chip *chip)
|
|||
if (!dn)
|
||||
return 0;
|
||||
|
||||
/* MTD can automatically handle DT partitions, etc. */
|
||||
mtd_set_of_node(nand_to_mtd(chip), dn);
|
||||
|
||||
if (of_get_nand_bus_width(dn) == 16)
|
||||
chip->options |= NAND_BUSWIDTH_16;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue