freebsd-dev/sys/dev/ofw
Oleksandr Tymoshenko bc90a48ccf 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
2016-05-11 18:20:02 +00:00
..
ofw_bus_if.m
ofw_bus_subr.c Teach ofw_bus_parse_xref_list_alloc to be able to return the length of the parsed list. 2016-02-09 03:35:40 +00:00
ofw_bus_subr.h Teach ofw_bus_parse_xref_list_alloc to be able to return the length of the parsed list. 2016-02-09 03:35:40 +00:00
ofw_bus.h
ofw_console.c Use callout(9) instead of timeout(9). 2014-09-02 18:57:19 +00:00
ofw_cpu.c Limit ofw_cpu_early_foreach() to CPUs only 2015-07-28 13:16:08 +00:00
ofw_cpu.h Adda function to iterate over the cpu nodes in the OFW or FDT data. This 2015-02-19 16:34:48 +00:00
ofw_disk.c
ofw_fdt.c Remove fdt_fixup_table from architectures where it's unneeded. We only make 2016-01-21 16:48:01 +00:00
ofw_if.m
ofw_iicbus.c Use EARLY_DRIVER_MODULE() with BUS_PASS_BUS priority for ofw_gpiobus 2016-03-15 15:24:18 +00:00
ofw_pci.h Revert r295756: 2016-02-20 12:28:20 +00:00
ofw_standard.c
ofw_subr.c Revert r295756: 2016-02-20 12:28:20 +00:00
ofw_subr.h Implement OF_decode_addr() for arm. Move most of powerpc's implementation 2015-12-21 18:07:32 +00:00
ofwbus.c Use uintmax_t (typedef'd to rman_res_t type) for rman ranges. 2016-03-18 01:28:41 +00:00
ofwpci.c Reduce OFW PCI code duplication - involves ARM, PPC and SPARC64 2016-03-29 15:19:56 +00:00
ofwpci.h Reduce OFW PCI code duplication - involves ARM, PPC and SPARC64 2016-03-29 15:19:56 +00:00
ofwvar.h
openfirm.c Add OF_prop_free function as a counterpart for OF_*prop_alloc 2016-05-11 18:20:02 +00:00
openfirm.h Add OF_prop_free function as a counterpart for OF_*prop_alloc 2016-05-11 18:20:02 +00:00
openfirmio.c
openfirmio.h
openpromio.c
openpromio.h