Author: gonzo
Date: Fri May 13 22:05:16 2016
New Revision: 299702
URL: https://svnweb.freebsd.org/changeset/base/299702

Log:
  Use OF_prop_free instead of direct call to free(9)

Modified:
  head/sys/arm/at91/at91_pinctrl.c
  head/sys/arm/freescale/imx/imx_iomux.c
  head/sys/arm/mv/mv_localbus.c

Modified: head/sys/arm/at91/at91_pinctrl.c
==============================================================================
--- head/sys/arm/at91/at91_pinctrl.c    Fri May 13 21:26:12 2016        
(r299701)
+++ head/sys/arm/at91/at91_pinctrl.c    Fri May 13 22:05:16 2016        
(r299702)
@@ -126,7 +126,7 @@ at91_pinctrl_setup_dinfo(device_t dev, p
                resource_list_add(&ndi->rl, SYS_RES_MEMORY, k,
                    phys, phys + size - 1, size);
        }
-       free(reg, M_OFWPROP);
+       OF_prop_free(reg);
 
        nintr = OF_getencprop_alloc(node, "interrupts",  sizeof(*intr),
            (void **)&intr);
@@ -154,7 +154,7 @@ at91_pinctrl_setup_dinfo(device_t dev, p
                        resource_list_add(&ndi->rl, SYS_RES_IRQ, k, intr[i],
                            intr[i], 1);
                }
-               free(intr, M_OFWPROP);
+               OF_prop_free(intr);
        }
 
        return (ndi);
@@ -429,7 +429,7 @@ pinctrl_configure_pins(device_t bus, pha
                        break;
                }
        }
-       free(cfgdata, M_OFWPROP);
+       OF_prop_free(cfgdata);
        return (0);
 }
 

Modified: head/sys/arm/freescale/imx/imx_iomux.c
==============================================================================
--- head/sys/arm/freescale/imx/imx_iomux.c      Fri May 13 21:26:12 2016        
(r299701)
+++ head/sys/arm/freescale/imx/imx_iomux.c      Fri May 13 22:05:16 2016        
(r299702)
@@ -176,7 +176,7 @@ iomux_configure_pins(device_t dev, phand
                            cfg->padconf_reg, cfg->padconf_val);
                }
        }
-       free(cfgtuples, M_OFWPROP);
+       OF_prop_free(cfgtuples);
        return (0);
 }
 

Modified: head/sys/arm/mv/mv_localbus.c
==============================================================================
--- head/sys/arm/mv/mv_localbus.c       Fri May 13 21:26:12 2016        
(r299701)
+++ head/sys/arm/mv/mv_localbus.c       Fri May 13 22:05:16 2016        
(r299702)
@@ -234,7 +234,7 @@ fdt_localbus_reg_decode(phandle_t node, 
        }
        rv = 0;
 out:
-       free(reg, M_OFWPROP);
+       OF_prop_free(reg);
        return (rv);
 }
 
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to