* util/ieee1275/ofpath.c (of_path_of_ide): Fix address for secondary

channel.
This commit is contained in:
Vladimir 'phcoder' Serbinenko 2011-12-24 02:46:47 +01:00
parent ce4a999d4d
commit 165099ea42
2 changed files with 6 additions and 1 deletions

View file

@ -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

View 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);
}