aboutsummaryrefslogtreecommitdiff
path: root/sys/sparc64/fhc/fhc.c
diff options
context:
space:
mode:
authorOleksandr Tymoshenko <gonzo@FreeBSD.org>2016-05-18 23:39:31 +0000
committerOleksandr Tymoshenko <gonzo@FreeBSD.org>2016-05-18 23:39:31 +0000
commit14131c0ba4a53ac9a4b7bd4e4fc49d2d1f3a03cc (patch)
tree1399bc8174a3b46161046ea08db47a9d04ed730d /sys/sparc64/fhc/fhc.c
parent4441bd735ff93775e6490020f853f8d63ca3993f (diff)
downloadsrc-14131c0ba4a53ac9a4b7bd4e4fc49d2d1f3a03cc.tar.gz
src-14131c0ba4a53ac9a4b7bd4e4fc49d2d1f3a03cc.zip
Use OF_prop_free instead of direct call to free(9)
Reviewed by: marius
Notes
Notes: svn path=/head/; revision=300173
Diffstat (limited to 'sys/sparc64/fhc/fhc.c')
-rw-r--r--sys/sparc64/fhc/fhc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/sparc64/fhc/fhc.c b/sys/sparc64/fhc/fhc.c
index 85aa67dc8cb8..417e32b71ce2 100644
--- a/sys/sparc64/fhc/fhc.c
+++ b/sys/sparc64/fhc/fhc.c
@@ -205,7 +205,7 @@ fhc_attach(device_t dev)
device_printf(dev, "board %d, ", board);
if (OF_getprop_alloc(node, "board-model", 1, (void **)&name) != -1) {
printf("model %s\n", name);
- free(name, M_OFWPROP);
+ OF_prop_free(name);
} else
printf("model unknown\n");
@@ -297,7 +297,7 @@ fhc_attach(device_t dev)
resource_list_add(&fdi->fdi_rl, SYS_RES_MEMORY, j,
reg[j].sbr_offset, reg[j].sbr_offset +
reg[j].sbr_size, reg[j].sbr_size);
- free(reg, M_OFWPROP);
+ OF_prop_free(reg);
if (central == 1) {
i = OF_getprop_alloc(child, "interrupts",
sizeof(*intr), (void **)&intr);
@@ -307,7 +307,7 @@ fhc_attach(device_t dev)
resource_list_add(&fdi->fdi_rl,
SYS_RES_IRQ, j, iv, iv, 1);
}
- free(intr, M_OFWPROP);
+ OF_prop_free(intr);
}
}
cdev = device_add_child(dev, NULL, -1);