Skip to content

Commit 2ec4c07

Browse files
committed
Use device_setprop_string().
1 parent b7e4eca commit 2ec4c07

1 file changed

Lines changed: 5 additions & 6 deletions

File tree

sys/dev/audio/audio.c

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* $NetBSD: audio.c,v 1.146 2024/05/27 02:47:53 nia Exp $ */
1+
/* $NetBSD: audio.c,v 1.147 2025/10/15 01:33:14 thorpej Exp $ */
22

33
/*-
44
* Copyright (c) 2008 The NetBSD Foundation, Inc.
@@ -181,7 +181,7 @@
181181
*/
182182

183183
#include <sys/cdefs.h>
184-
__KERNEL_RCSID(0, "$NetBSD: audio.c,v 1.146 2024/05/27 02:47:53 nia Exp $");
184+
__KERNEL_RCSID(0, "$NetBSD: audio.c,v 1.147 2025/10/15 01:33:14 thorpej Exp $");
185185

186186
#ifdef _KERNEL_OPT
187187
#include "audio.h"
@@ -1193,17 +1193,16 @@ audioattach(device_t parent, device_t self, void *aux)
11931193
static int
11941194
audio_properties(struct audio_softc *sc)
11951195
{
1196-
prop_dictionary_t dict = device_properties(sc->sc_dev);
11971196
audio_device_t adev;
11981197
int error;
11991198

12001199
error = sc->hw_if->getdev(sc->hw_hdl, &adev);
12011200
if (error)
12021201
return error;
12031202

1204-
prop_dictionary_set_string(dict, "name", adev.name);
1205-
prop_dictionary_set_string(dict, "version", adev.version);
1206-
prop_dictionary_set_string(dict, "config", adev.config);
1203+
device_setprop_string(sc->sc_dev, "name", adev.name);
1204+
device_setprop_string(sc->sc_dev, "version", adev.version);
1205+
device_setprop_string(sc->sc_dev, "config", adev.config);
12071206

12081207
return 0;
12091208
}

0 commit comments

Comments
 (0)