From 165099ea423194e279f1832ccf3980aaca804320 Mon Sep 17 00:00:00 2001 From: Vladimir 'phcoder' Serbinenko Date: Sat, 24 Dec 2011 02:46:47 +0100 Subject: [PATCH] * util/ieee1275/ofpath.c (of_path_of_ide): Fix address for secondary channel. --- ChangeLog | 5 +++++ util/ieee1275/ofpath.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) 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); }