diff options
author | Cyril Bur <cyrilbur@gmail.com> | 2017-09-21 17:29:31 +1000 |
---|---|---|
committer | Alistair Popple <alistair@popple.id.au> | 2017-09-22 12:11:47 +1000 |
commit | f7eecff75cc4efddafe6e5dc911572a287402d50 (patch) | |
tree | ec392a72de8ab340bb303c7a2a78fc3000d14b7c /libpdbg/device.c | |
parent | 502fe36f58be7a6752291fc8c95565a321bad7ec (diff) | |
download | pdbg-f7eecff75cc4efddafe6e5dc911572a287402d50.tar.gz pdbg-f7eecff75cc4efddafe6e5dc911572a287402d50.zip |
Look for 'chip-id' as opposed to 'ibm,chip-id'
The device trees inside pdbg use 'chip-id'. This function can tell the
consumer of any target what chip it is on, if it searches for the correct
attribute.
Signed-off-by: Cyril Bur <cyrilbur@gmail.com>
Signed-off-by: Alistair Popple <alistair@popple.id.au>
Diffstat (limited to 'libpdbg/device.c')
-rw-r--r-- | libpdbg/device.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libpdbg/device.c b/libpdbg/device.c index 8995f20..95abe52 100644 --- a/libpdbg/device.c +++ b/libpdbg/device.c @@ -878,7 +878,7 @@ static u32 __dt_get_chip_id(const struct dt_node *node) const struct dt_property *prop; for (; node; node = node->parent) { - prop = dt_find_property(node, "ibm,chip-id"); + prop = dt_find_property(node, "chip-id"); if (prop) return dt_property_get_cell(prop, 0); } |