Thanks Stefan,

On 21/07/15 17:25, Stefan Wahren wrote:
+
>+ addr = of_get_property(cell_np, "reg", &len);
>+ if (!addr || (len < 2 * sizeof(int))) {
I'm not sure, but shouldn't be sizeof(u32) more portable?

yes it makes sense, I will change it.
>[...]
>+
>+ addr = of_get_property(cell_np, "bits", &len);
>+ if (addr && len == (2 * sizeof(int))) {
dito
yep.

--srini
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to