bcm53xx: bcm_nand: fix compilation
authorRafał Miłecki <zajec5@gmail.com>
Mon, 8 Dec 2014 18:28:54 +0000 (18:28 +0000)
committerRafał Miłecki <zajec5@gmail.com>
Mon, 8 Dec 2014 18:28:54 +0000 (18:28 +0000)
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
SVN-Revision: 43584

target/linux/bcm53xx/patches-3.14/420-mtd-bcm5301x_nand.patch
target/linux/bcm53xx/patches-3.18/420-mtd-bcm5301x_nand.patch

index 7571eef8a08c0d7b2df57804aebdf816184e9648..3f082543af0bc0a8d32ae1025d11790628badbf9 100644 (file)
 +      if (res)
 +              return res;
 +
-+      parser_data.of_node = np;
++      parser_data.of_node = dev->of_node;
 +      res = mtd_device_parse_register(&ctrl->mtd, part_probes, &parser_data, NULL, 0);
 +      if (res) {
 +              dev_err(dev, "Failed to register MTD device: %d\n", res);
index c4bc51fe9b569bdf18221365ef36a9a31fd55375..90a9d96d835cf90db26a109db3c68cfac4723a1f 100644 (file)
 +      if (res)
 +              return res;
 +
-+      parser_data.of_node = np;
++      parser_data.of_node = dev->of_node;
 +      res = mtd_device_parse_register(&ctrl->mtd, part_probes, &parser_data, NULL, 0);
 +      if (res) {
 +              dev_err(dev, "Failed to register MTD device: %d\n", res);