sparc64: Don't use devspec to determine the OBP path
[grub.git] / grub-core / osdep / linux / ofpath.c
index a79682a..dce4e59 100644 (file)
@@ -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)
        {