On Mon, Feb 22, 2016 at 02:49:32PM +0800, Yangbo Lu wrote:
> @@ -431,7 +431,7 @@ static int get_of_u32(struct device_node *node, char 
> *str, u32 *val)
>  
>       if (!prop || plen != sizeof(*prop))
>               return -1;
> -     *val = *prop;
> +     *val = be32_to_cpu(*prop);
>       return 0;
>  }

Why not simply replace get_of_u32 with the standard helper function,
of_property_read_u32?

Thanks,
Richard

Reply via email to