diff options
-rw-r--r-- | sys/arm/nvidia/as3722_gpio.c | 4 | ||||
-rw-r--r-- | sys/arm/nvidia/tegra124/tegra124_coretemp.c | 2 | ||||
-rw-r--r-- | sys/arm/nvidia/tegra124/tegra124_xusbpadctl.c | 4 | ||||
-rw-r--r-- | sys/arm/nvidia/tegra_pinmux.c | 4 | ||||
-rw-r--r-- | sys/arm/nvidia/tegra_usbphy.c | 4 |
5 files changed, 9 insertions, 9 deletions
diff --git a/sys/arm/nvidia/as3722_gpio.c b/sys/arm/nvidia/as3722_gpio.c index 8e53bce..1ee5547 100644 --- a/sys/arm/nvidia/as3722_gpio.c +++ b/sys/arm/nvidia/as3722_gpio.c @@ -254,9 +254,9 @@ as3722_pinmux_process_node(struct as3722_softc *sc, phandle_t node) } while (len < lpins); if (pins != NULL) - free(pins, M_OFWPROP); + OF_prop_free(pins); if (cfg.function != NULL) - free(cfg.function, M_OFWPROP); + OF_prop_free(cfg.function); return (rv); } diff --git a/sys/arm/nvidia/tegra124/tegra124_coretemp.c b/sys/arm/nvidia/tegra124/tegra124_coretemp.c index c29fe8e..1426a4e 100644 --- a/sys/arm/nvidia/tegra124/tegra124_coretemp.c +++ b/sys/arm/nvidia/tegra124/tegra124_coretemp.c @@ -164,7 +164,7 @@ tegra124_coretemp_ofw_parse(struct tegra124_coretemp_softc *sc) } sc->tsens_id = 0x100 + sc->cpu_id; //cells[0]; - free(cells, M_OFWPROP); + OF_prop_free(cells); sc->tsens_dev = OF_device_from_xref(xnode); if (sc->tsens_dev == NULL) { diff --git a/sys/arm/nvidia/tegra124/tegra124_xusbpadctl.c b/sys/arm/nvidia/tegra124/tegra124_xusbpadctl.c index e06d4bf..9d8b846 100644 --- a/sys/arm/nvidia/tegra124/tegra124_xusbpadctl.c +++ b/sys/arm/nvidia/tegra124/tegra124_xusbpadctl.c @@ -274,9 +274,9 @@ xusbpadctl_process_node(struct xusbpadctl_softc *sc, phandle_t node) } while (len < llanes); if (lanes != NULL) - free(lanes, M_OFWPROP); + OF_prop_free(lanes); if (cfg.function != NULL) - free(cfg.function, M_OFWPROP); + OF_prop_free(cfg.function); return (rv); } diff --git a/sys/arm/nvidia/tegra_pinmux.c b/sys/arm/nvidia/tegra_pinmux.c index 6123746..0e8102e 100644 --- a/sys/arm/nvidia/tegra_pinmux.c +++ b/sys/arm/nvidia/tegra_pinmux.c @@ -693,9 +693,9 @@ pinmux_process_node(struct pinmux_softc *sc, phandle_t node) } while (len < lpins); if (pins != NULL) - free(pins, M_OFWPROP); + OF_prop_free(pins); if (cfg.function != NULL) - free(cfg.function, M_OFWPROP); + OF_prop_free(cfg.function); return (rv); } diff --git a/sys/arm/nvidia/tegra_usbphy.c b/sys/arm/nvidia/tegra_usbphy.c index 40c0714..5446068 100644 --- a/sys/arm/nvidia/tegra_usbphy.c +++ b/sys/arm/nvidia/tegra_usbphy.c @@ -593,7 +593,7 @@ usb_get_ifc_mode(device_t dev, phandle_t node, char *name) ret = USB_IFC_TYPE_ULPI; else device_printf(dev, "Unsupported phy type: %s\n", tmpstr); - free(tmpstr, M_OFWPROP); + OF_prop_free(tmpstr); return (ret); } @@ -617,7 +617,7 @@ usb_get_dr_mode(device_t dev, phandle_t node, char *name) ret = USB_DR_MODE_OTG; else device_printf(dev, "Unknown dr mode: %s\n", tmpstr); - free(tmpstr, M_OFWPROP); + OF_prop_free(tmpstr); return (ret); } |