aboutsummaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorOleksandr Tymoshenko <gonzo@FreeBSD.org>2016-05-14 18:44:30 +0000
committerOleksandr Tymoshenko <gonzo@FreeBSD.org>2016-05-14 18:44:30 +0000
commit27b917c85e3ecee030a5ca051553bb598f9b4156 (patch)
tree829c36ef9281ce06dd382526f818ad460fc54f36 /sys/dev
parentfdce57a04219d7a36c6646950fde6c8bcd97c044 (diff)
Notes
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/altera/avgen/altera_avgen_fdt.c6
-rw-r--r--sys/dev/usb/controller/ehci_fsl.c2
2 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/altera/avgen/altera_avgen_fdt.c b/sys/dev/altera/avgen/altera_avgen_fdt.c
index 09fba3960edff..79e07eae1e536 100644
--- a/sys/dev/altera/avgen/altera_avgen_fdt.c
+++ b/sys/dev/altera/avgen/altera_avgen_fdt.c
@@ -120,11 +120,11 @@ altera_avgen_fdt_attach(device_t dev)
bus_release_resource(dev, SYS_RES_MEMORY, sc->avg_rid,
sc->avg_res);
if (str_fileio != NULL)
- free(str_fileio, M_OFWPROP);
+ OF_prop_free(str_fileio);
if (str_mmapio != NULL)
- free(str_mmapio, M_OFWPROP);
+ OF_prop_free(str_mmapio);
if (str_devname != NULL)
- free(str_devname, M_OFWPROP);
+ OF_prop_free(str_devname);
return (error);
}
diff --git a/sys/dev/usb/controller/ehci_fsl.c b/sys/dev/usb/controller/ehci_fsl.c
index 7db642e780f86..a877d5ea5fd1d 100644
--- a/sys/dev/usb/controller/ehci_fsl.c
+++ b/sys/dev/usb/controller/ehci_fsl.c
@@ -176,7 +176,7 @@ enable_usb(device_t dev, bus_space_tag_t iot, bus_space_handle_t ioh)
(OF_getprop_alloc(node, "phy_type", 1, (void **)&phy_type) > 0)) {
if (strncasecmp(phy_type, "utmi", strlen("utmi")) == 0)
tmp |= UTMI_PHY_EN;
- free(phy_type, M_OFWPROP);
+ OF_prop_free(phy_type);
}
bus_space_write_4(iot, ioh, CONTROL, tmp);
}