proplib API catchup
This commit is contained in:
parent
4f4f969a98
commit
14909839c0
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue