proplib API catchup

This commit is contained in:
macallan 2020-07-02 12:45:27 +00:00
parent 4f4f969a98
commit 14909839c0
1 changed files with 2 additions and 2 deletions

View File

@ -100,8 +100,8 @@ smuiic_attach(device_t parent, device_t self, void *aux)
goto skip;
addr = (addr & 0xff) >> 1;
dev = prop_dictionary_create();
prop_dictionary_set_cstring(dev, "name", name);
data = prop_data_create_data(compat, strlen(compat)+1);
prop_dictionary_set_string(dev, "name", name);
data = prop_data_create_copy(compat, strlen(compat)+1);
prop_dictionary_set(dev, "compatible", data);
prop_object_release(data);
prop_dictionary_set_uint32(dev, "addr", addr);