of: Improve prom_update_property() function
[firefly-linux-kernel-4.4.55.git] / arch / powerpc / platforms / 85xx / p1022_ds.c
index 74e310b4b460b3ddba96b336014bb74e1b642591..31d18b964f94f4bbc6b8f5097eceb575b676a828 100644 (file)
@@ -348,13 +348,7 @@ void __init p1022_ds_pic_init(void)
  */
 static void __init disable_one_node(struct device_node *np, struct property *new)
 {
-       struct property *old;
-
-       old = of_find_property(np, new->name, NULL);
-       if (old)
-               prom_update_property(np, new, old);
-       else
-               prom_add_property(np, new);
+       prom_update_property(np, new);
 }
 
 /* TRUE if there is a "video=fslfb" command-line parameter. */