mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
mtd: nand: fix for drop unnecessary partition parser data
From Stephen:
Hi Brian,
After merging the l2-mtd tree, today's linux-next build (powerpc
ppc44x_defconfig) failed like this:
drivers/mtd/nand/ndfc.c: In function 'ndfc_chip_init':
drivers/mtd/nand/ndfc.c:177:2: error: 'ppdata' undeclared (first use in this function)
ppdata.of_node = flash_np;
^
Caused by commit
a61ae81a19 ("mtd: nand: drop unnecessary partition parser data")
The flash node is already correctly assigned using the new helper
(nand_set_flash_node()) so the correct fix is indeed to simply drop this
line.
Fixes: a61ae81a19 ("mtd: nand: drop unnecessary partition parser data")
Signed-off-by: Stephen Rothwell <[email protected]>
Signed-off-by: Brian Norris <[email protected]>
This commit is contained in:
parent
1873315fb1
commit
887e9d3a1f
1 changed files with 0 additions and 1 deletions
|
|
@ -174,7 +174,6 @@ static int ndfc_chip_init(struct ndfc_controller *ndfc,
|
|||
return -ENODEV;
|
||||
nand_set_flash_node(chip, flash_np);
|
||||
|
||||
ppdata.of_node = flash_np;
|
||||
mtd->name = kasprintf(GFP_KERNEL, "%s.%s", dev_name(&ndfc->ofdev->dev),
|
||||
flash_np->name);
|
||||
if (!mtd->name) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue