projects
/
grub.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
sparc64: Don't use devspec to determine the OBP path
[grub.git]
/
grub-core
/
osdep
/
linux
/
ofpath.c
diff --git
a/grub-core/osdep/linux/ofpath.c
b/grub-core/osdep/linux/ofpath.c
index
a79682a
..
dce4e59
100644
(file)
--- a/
grub-core/osdep/linux/ofpath.c
+++ b/
grub-core/osdep/linux/ofpath.c
@@
-120,6
+120,8
@@
find_obppath (const char *sysfs_path_orig)
#endif
fd = open(path, O_RDONLY);
+
+#ifndef __sparc__
if (fd < 0 || fstat (fd, &st) < 0)
{
if (fd >= 0)
@@
-127,6
+129,7
@@
find_obppath (const char *sysfs_path_orig)
snprintf(path, path_size, "%s/devspec", sysfs_path);
fd = open(path, O_RDONLY);
}
+#endif
if (fd < 0 || fstat (fd, &st) < 0)
{