]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
* util/ieee1275/ofpath.c (of_path_of_ide): Fix address for secondary
authorVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Sat, 24 Dec 2011 01:46:47 +0000 (02:46 +0100)
committerVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Sat, 24 Dec 2011 01:46:47 +0000 (02:46 +0100)
channel.

ChangeLog
util/ieee1275/ofpath.c

index f62a3a11bd3c9e1a706960c207a51c9366bc6bb2..15ce35207908e206e66a51ba19a999dcf3986eef 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2011-12-24  Vladimir Serbinenko  <phcoder@gmail.com>
+
+       * util/ieee1275/ofpath.c (of_path_of_ide): Fix address for secondary
+       channel.
+
 2011-12-24  Vladimir Serbinenko  <phcoder@gmail.com>
 
        * grub-core/kern/ieee1275/openfw.c (grub_devalias_iterate): Fix
index 20a571191e2961c6d8496bc09e8155493765c9ff..dc16bfde92fcfe0ebb14dc7877bfbee2ad09862a 100644 (file)
@@ -233,7 +233,7 @@ of_path_of_ide(char *of_path,
   p = get_basename (sysfs_path);
   sscanf(p, "%d.%d", &chan, &devno);
 
-  __of_path_common(of_path, sysfs_path, device, devno);
+  __of_path_common(of_path, sysfs_path, device, 2 * chan + devno);
 
   free (sysfs_path);
 }