diff --git a/sys/arch/macppc/dev/smuiic.c b/sys/arch/macppc/dev/smuiic.c index 831ba0438d9e..f13fa41106f7 100644 --- a/sys/arch/macppc/dev/smuiic.c +++ b/sys/arch/macppc/dev/smuiic.c @@ -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);