Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/vme Adapt to new proplib api
details: https://anonhg.NetBSD.org/src/rev/769a6172faad
branches: trunk
changeset: 937278:769a6172faad
user: martin <martin%NetBSD.org@localhost>
date: Fri Aug 14 10:31:40 2020 +0000
description:
Adapt to new proplib api
diffstat:
sys/arch/sparc/sparc/autoconf.c | 6 +++---
sys/dev/vme/if_ie_vme.c | 6 +++---
2 files changed, 6 insertions(+), 6 deletions(-)
diffs (54 lines):
diff -r c648c9df79e7 -r 769a6172faad sys/arch/sparc/sparc/autoconf.c
--- a/sys/arch/sparc/sparc/autoconf.c Fri Aug 14 09:28:29 2020 +0000
+++ b/sys/arch/sparc/sparc/autoconf.c Fri Aug 14 10:31:40 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: autoconf.c,v 1.260 2020/06/08 02:27:08 mrg Exp $ */
+/* $NetBSD: autoconf.c,v 1.261 2020/08/14 10:34:22 martin Exp $ */
/*
* Copyright (c) 1996
@@ -48,7 +48,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: autoconf.c,v 1.260 2020/06/08 02:27:08 mrg Exp $");
+__KERNEL_RCSID(0, "$NetBSD: autoconf.c,v 1.261 2020/08/14 10:34:22 martin Exp $");
#include "opt_ddb.h"
#include "opt_kgdb.h"
@@ -1636,7 +1636,7 @@
prom_getether(ofnode, eaddr);
dict = device_properties(dev);
- blob = prop_data_create_data(eaddr, ETHER_ADDR_LEN);
+ blob = prop_data_create_copy(eaddr, ETHER_ADDR_LEN);
prop_dictionary_set(dict, "mac-address", blob);
prop_object_release(blob);
}
diff -r c648c9df79e7 -r 769a6172faad sys/dev/vme/if_ie_vme.c
--- a/sys/dev/vme/if_ie_vme.c Fri Aug 14 09:28:29 2020 +0000
+++ b/sys/dev/vme/if_ie_vme.c Fri Aug 14 10:31:40 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_ie_vme.c,v 1.32 2019/04/25 10:08:46 msaitoh Exp $ */
+/* $NetBSD: if_ie_vme.c,v 1.33 2020/08/14 10:31:40 martin Exp $ */
/*
* Copyright (c) 1995 Charles D. Cranor
@@ -140,7 +140,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_ie_vme.c,v 1.32 2019/04/25 10:08:46 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_ie_vme.c,v 1.33 2020/08/14 10:31:40 martin Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -559,7 +559,7 @@
eaddrprop = prop_dictionary_get(device_properties(self), "mac-address");
if (eaddrprop != NULL && prop_data_size(eaddrprop) == ETHER_ADDR_LEN)
- memcpy(myaddr, prop_data_data_nocopy(eaddrprop),
+ memcpy(myaddr, prop_data_value(eaddrprop),
ETHER_ADDR_LEN);
i82586_attach(sc, "multibus/vme", myaddr, media, NMEDIA, media[0]);
Home |
Main Index |
Thread Index |
Old Index