Author: ray Date: Tue Mar 19 14:15:41 2013 New Revision: 248509 URL: http://svnweb.freebsd.org/changeset/base/248509
Log: Return "start" and "end" to u_long world. Because rman handle addresses as u_long too. Discussed with: ian@ Pointy hat to: ray@ Modified: head/sys/dev/fdt/fdt_common.c Modified: head/sys/dev/fdt/fdt_common.c ============================================================================== --- head/sys/dev/fdt/fdt_common.c Tue Mar 19 14:13:12 2013 (r248508) +++ head/sys/dev/fdt/fdt_common.c Tue Mar 19 14:15:41 2013 (r248509) @@ -421,12 +421,11 @@ fdt_regsize(phandle_t node, u_long *base int fdt_reg_to_rl(phandle_t node, struct resource_list *rl) { - u_long count; + u_long end, count, start; pcell_t *reg, *regptr; pcell_t addr_cells, size_cells; int tuple_size, tuples; int i, rv; - bus_space_handle_t start, end; long busaddr, bussize; if (fdt_addrsize_cells(OF_parent(node), &addr_cells, &size_cells) != 0) @@ -447,8 +446,8 @@ fdt_reg_to_rl(phandle_t node, struct res regptr = reg; for (i = 0; i < tuples; i++) { - rv = fdt_data_to_res(reg, addr_cells, size_cells, - (u_long *)&start, &count); + rv = fdt_data_to_res(reg, addr_cells, size_cells, &start, + &count); if (rv != 0) { resource_list_free(rl); goto out; _______________________________________________ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"