Cast "start" to u_long. Temporary fix to unbreak tinderbox.

We need here max possible storage or dynamic, depend on size of address cell.
This commit is contained in:
Aleksandr Rybalko 2013-03-19 13:13:26 +00:00
parent b4862fafd5
commit ee52bd5713

View File

@ -447,8 +447,8 @@ fdt_reg_to_rl(phandle_t node, struct resource_list *rl)
regptr = reg;
for (i = 0; i < tuples; i++) {
rv = fdt_data_to_res(reg, addr_cells, size_cells, &start,
&count);
rv = fdt_data_to_res(reg, addr_cells, size_cells,
(u_long *)&start, &count);
if (rv != 0) {
resource_list_free(rl);
goto out;