mirror of https://github.com/hak5/openwrt-owl.git
bcm53xx: bcm_nand: fix compilation
Signed-off-by: Rafał Miłecki <zajec5@gmail.com> SVN-Revision: 43584owl
parent
1f4ddec7f2
commit
613bc3ef3f
|
@ -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);
|
||||||
|
|
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue