of/fdt: update of_get_flat_dt_prop in prep for libfdt

Make of_get_flat_dt_prop arguments compatible with libfdt fdt_getprop
call in preparation to convert FDT code to use libfdt. Make the return
value const and the property length ptr type an int.

Signed-off-by: Rob Herring <[email protected]>
Tested-by: Michal Simek <[email protected]>
Tested-by: Grant Likely <[email protected]>
Tested-by: Stephen Chivers <[email protected]>
This commit is contained in:
Rob Herring 2014-04-01 23:49:03 -05:00
commit 9d0c4dfedd
19 changed files with 77 additions and 74 deletions

View file

@ -220,7 +220,7 @@ static int __init xtensa_dt_io_area(unsigned long node, const char *uname,
int depth, void *data)
{
const __be32 *ranges;
unsigned long len;
int len;
if (depth > 1)
return 0;