diff options
author | Oleksandr Tymoshenko <gonzo@FreeBSD.org> | 2016-05-11 18:20:02 +0000 |
---|---|---|
committer | Oleksandr Tymoshenko <gonzo@FreeBSD.org> | 2016-05-11 18:20:02 +0000 |
commit | bc90a48ccf2a906024256a42463b47dd99631796 (patch) | |
tree | 3563d72b1347b885dce8a7a9c1acc2cd41747fe8 /sys/arm/ti/ti_pinmux.c | |
parent | c24375a7ded40ccac59c4e9811c8deb614ee4f2b (diff) |
Add OF_prop_free function as a counterpart for OF_*prop_alloc
- Introduce new OF API function OF_prop_free to free memory allocated by
OF_getprop_alloc and OF_getencprop_alloc. Current code just calls free(9)
with M_OFWPROP memory class which assumes knowledge about OF_*prop_alloc
functions' internals and leads to unneccessary code coupling
- Convert some of the free(..., M_OFWPROP) instances to OF_prop_free
Files affected by this commit are the ones I was able to test on real
hardware. The rest of free(..., M_OFWPROP) instances will be handled with
idividual maintainers
Reviewed by: andrew
Differential Revision: https://reviews.freebsd.org/D6315
Notes
Notes:
svn path=/head/; revision=299477
Diffstat (limited to 'sys/arm/ti/ti_pinmux.c')
-rw-r--r-- | sys/arm/ti/ti_pinmux.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/arm/ti/ti_pinmux.c b/sys/arm/ti/ti_pinmux.c index ffeaf75aed78..0eeedbe50e10 100644 --- a/sys/arm/ti/ti_pinmux.c +++ b/sys/arm/ti/ti_pinmux.c @@ -361,7 +361,7 @@ ti_pinmux_configure_pins(device_t dev, phandle_t cfgxref) ti_pinmux_write_2(sc, cfg->reg, cfg->conf); } - free(cfgtuples, M_OFWPROP); + OF_prop_free(cfgtuples); return (0); } |