* kern/ieee1275/openfw.c (grub_children_iterate): Skip device itself if
returned by firmware.
This commit is contained in:
parent
af09641e2b
commit
f9fd65df54
2 changed files with 11 additions and 0 deletions
|
@ -73,10 +73,16 @@ grub_children_iterate (char *devpath,
|
|||
IEEE1275_MAX_PROP_LEN, &actual))
|
||||
childtype[0] = 0;
|
||||
|
||||
if (dev == child)
|
||||
continue;
|
||||
|
||||
if (grub_ieee1275_package_to_path (child, childpath,
|
||||
IEEE1275_MAX_PATH_LEN, &actual))
|
||||
continue;
|
||||
|
||||
if (grub_strcmp (devpath, childpath) == 0)
|
||||
continue;
|
||||
|
||||
if (grub_ieee1275_get_property (child, "name", childname,
|
||||
IEEE1275_MAX_PROP_LEN, &actual))
|
||||
continue;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue