From: Vladimir 'phcoder' Serbinenko Date: Sat, 24 Dec 2011 01:46:47 +0000 (+0100) Subject: * util/ieee1275/ofpath.c (of_path_of_ide): Fix address for secondary X-Git-Tag: 2.00~831 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=165099ea423194e279f1832ccf3980aaca804320;p=thirdparty%2Fgrub.git * util/ieee1275/ofpath.c (of_path_of_ide): Fix address for secondary channel. --- diff --git a/ChangeLog b/ChangeLog index f62a3a11b..15ce35207 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2011-12-24 Vladimir Serbinenko + + * util/ieee1275/ofpath.c (of_path_of_ide): Fix address for secondary + channel. + 2011-12-24 Vladimir Serbinenko * grub-core/kern/ieee1275/openfw.c (grub_devalias_iterate): Fix diff --git a/util/ieee1275/ofpath.c b/util/ieee1275/ofpath.c index 20a571191..dc16bfde9 100644 --- a/util/ieee1275/ofpath.c +++ b/util/ieee1275/ofpath.c @@ -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); }