Concept of ofpathname is clear: return OF path to a given device or NULL if none. Returning anything else is a bug even if it ends up helping you somewhere.
Hi Vladimir,
We have implemented this code to enable the ieee1275 hint for grub. We
had scenarios (in SLES) like the disk had PReP partition followed by an
LVM and, inside this LVM , the boot partition. So, we implemented this
code to make grub able to generate the hint.
Do you mean search hint? Correct hint for lvm is lvmid/... .
As for restricting to PPC: it solves exactly nothing of concerns.