Lines Matching refs:new_prop
95 struct property *new_prop = *prop; in update_dt_property() local
109 if (new_prop) { in update_dt_property()
111 char *new_data = kzalloc(new_prop->length + vd, GFP_KERNEL); in update_dt_property()
115 memcpy(new_data, new_prop->value, new_prop->length); in update_dt_property()
116 memcpy(new_data + new_prop->length, value, vd); in update_dt_property()
118 kfree(new_prop->value); in update_dt_property()
119 new_prop->value = new_data; in update_dt_property()
120 new_prop->length += vd; in update_dt_property()
122 new_prop = kzalloc(sizeof(*new_prop), GFP_KERNEL); in update_dt_property()
123 if (!new_prop) in update_dt_property()
126 new_prop->name = kstrdup(name, GFP_KERNEL); in update_dt_property()
127 if (!new_prop->name) { in update_dt_property()
128 kfree(new_prop); in update_dt_property()
132 new_prop->length = vd; in update_dt_property()
133 new_prop->value = kzalloc(new_prop->length, GFP_KERNEL); in update_dt_property()
134 if (!new_prop->value) { in update_dt_property()
135 kfree(new_prop->name); in update_dt_property()
136 kfree(new_prop); in update_dt_property()
140 memcpy(new_prop->value, value, vd); in update_dt_property()
141 *prop = new_prop; in update_dt_property()
146 of_update_property(dn, new_prop); in update_dt_property()