Adapt to new proplib API

This commit is contained in:
martin 2020-07-14 08:58:03 +00:00
parent 5d94472ebc
commit 2b7876822e
2 changed files with 7 additions and 7 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: cuda.c,v 1.25 2020/07/14 08:52:00 martin Exp $ */
/* $NetBSD: cuda.c,v 1.26 2020/07/14 08:58:03 martin Exp $ */
/*-
* Copyright (c) 2006 Michael Lorenz
@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: cuda.c,v 1.25 2020/07/14 08:52:00 martin Exp $");
__KERNEL_RCSID(0, "$NetBSD: cuda.c,v 1.26 2020/07/14 08:58:03 martin Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -259,7 +259,7 @@ cuda_attach(device_t parent, device_t self, void *aux)
node = OF_finddevice("/valkyrie");
if (node != -1) {
dev = prop_dictionary_create();
prop_dictionary_set_cstring(dev, "name", "videopll");
prop_dictionary_set_string(dev, "name", "videopll");
prop_dictionary_set_uint32(dev, "addr", 0x50);
prop_array_add(cfg, dev);
prop_object_release(dev);

View File

@ -1,4 +1,4 @@
/* $NetBSD: pmu.c,v 1.33 2019/12/22 23:23:30 thorpej Exp $ */
/* $NetBSD: pmu.c,v 1.34 2020/07/14 08:58:03 martin Exp $ */
/*-
* Copyright (c) 2006 Michael Lorenz
@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: pmu.c,v 1.33 2019/12/22 23:23:30 thorpej Exp $");
__KERNEL_RCSID(0, "$NetBSD: pmu.c,v 1.34 2020/07/14 08:58:03 martin Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -365,8 +365,8 @@ pmu_attach(device_t parent, device_t self, void *aux)
addr = (addr & 0xff) >> 1;
DPRINTF("-> %s@%x\n", name, addr);
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);