bcm53xx: bcm_nand: fix compilation

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

SVN-Revision: 43584
owl
Rafał Miłecki 2014-12-08 18:28:54 +00:00
parent 1f4ddec7f2
commit 613bc3ef3f
2 changed files with 2 additions and 2 deletions

View File

@ -1561,7 +1561,7 @@
+ if (res) + if (res)
+ return 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); + res = mtd_device_parse_register(&ctrl->mtd, part_probes, &parser_data, NULL, 0);
+ if (res) { + if (res) {
+ dev_err(dev, "Failed to register MTD device: %d\n", res); + dev_err(dev, "Failed to register MTD device: %d\n", res);

View File

@ -1561,7 +1561,7 @@
+ if (res) + if (res)
+ return 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); + res = mtd_device_parse_register(&ctrl->mtd, part_probes, &parser_data, NULL, 0);
+ if (res) { + if (res) {
+ dev_err(dev, "Failed to register MTD device: %d\n", res); + dev_err(dev, "Failed to register MTD device: %d\n", res);