Skip to content
Commit a4dc7ff0 authored by Paul Mackerras's avatar Paul Mackerras
Browse files

[POWERPC] Define of_read_ulong helper



There are various places where we want to extract an unsigned long
value from a device-tree property that can be 1 or 2 cells in length.
This replaces some open-coded calculations, and one place where we
assumed without checking that properties were the length we wanted,
with a little of_read_ulong() helper.

Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
parent 19e59df4
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment