gard: Fix up path parsing
gard: Fix up path parsing

Currently we assume that the Unit ID can be used as an array index into
the chip_units[] structure. There are holes in the ID space though, so
this doesn't actually work. Fix it up by walking the array looking for
the ID.

Signed-off-by: Oliver O'Halloran <3dfaff8fa6ae977f042064a112a6aac576279b9b@gmail.com>
Signed-off-by: Stewart Smith <ec31ab75ddf977353c8f660f92ea8b23f64aef25@linux.vnet.ibm.com>

stewart-ibm/skiboot,shenki/skiboot,legoater/skiboot,open-power/skiboot,qemu/skiboot,shenki/skiboot,open-power/skiboot,qemu/skiboot,stewart-ibm/skiboot,legoater/skiboot,shenki/skiboot,open-power/skiboot,open-power/skiboot,shenki/skiboot,legoater/skiboot,legoater/skiboot,qemu/skiboot,legoater/skiboot,qemu/skiboot,qemu/skiboot,stewart-ibm/skiboot,shenki/skiboot,open-power/skiboot