Lines Matching refs:new_prop
93 struct property *new_prop = *prop; in update_dt_property() local
107 if (new_prop) { in update_dt_property()
109 char *new_data = kzalloc(new_prop->length + vd, GFP_KERNEL); in update_dt_property()
113 memcpy(new_data, new_prop->value, new_prop->length); in update_dt_property()
114 memcpy(new_data + new_prop->length, value, vd); in update_dt_property()
116 kfree(new_prop->value); in update_dt_property()
117 new_prop->value = new_data; in update_dt_property()
118 new_prop->length += vd; in update_dt_property()
120 new_prop = kzalloc(sizeof(*new_prop), GFP_KERNEL); in update_dt_property()
121 if (!new_prop) in update_dt_property()
124 new_prop->name = kstrdup(name, GFP_KERNEL); in update_dt_property()
125 if (!new_prop->name) { in update_dt_property()
126 kfree(new_prop); in update_dt_property()
130 new_prop->length = vd; in update_dt_property()
131 new_prop->value = kzalloc(new_prop->length, GFP_KERNEL); in update_dt_property()
132 if (!new_prop->value) { in update_dt_property()
133 kfree(new_prop->name); in update_dt_property()
134 kfree(new_prop); in update_dt_property()
138 memcpy(new_prop->value, value, vd); in update_dt_property()
139 *prop = new_prop; in update_dt_property()
144 of_update_property(dn, new_prop); in update_dt_property()