diff options
Diffstat (limited to 'drivers/of/unittest.c')
-rw-r--r-- | drivers/of/unittest.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/of/unittest.c b/drivers/of/unittest.c index 84427384654d..3249fe259d30 100644 --- a/drivers/of/unittest.c +++ b/drivers/of/unittest.c | |||
@@ -1116,9 +1116,12 @@ static void update_node_properties(struct device_node *np, | |||
1116 | for (prop = np->properties; prop != NULL; prop = save_next) { | 1116 | for (prop = np->properties; prop != NULL; prop = save_next) { |
1117 | save_next = prop->next; | 1117 | save_next = prop->next; |
1118 | ret = of_add_property(dup, prop); | 1118 | ret = of_add_property(dup, prop); |
1119 | if (ret) | 1119 | if (ret) { |
1120 | if (ret == -EEXIST && !strcmp(prop->name, "name")) | ||
1121 | continue; | ||
1120 | pr_err("unittest internal error: unable to add testdata property %pOF/%s", | 1122 | pr_err("unittest internal error: unable to add testdata property %pOF/%s", |
1121 | np, prop->name); | 1123 | np, prop->name); |
1124 | } | ||
1122 | } | 1125 | } |
1123 | } | 1126 | } |
1124 | 1127 | ||