* util/ieee1275/ofpath.c (of_path_of_ide): Fix address for secondary
channel.
This commit is contained in:
parent
ce4a999d4d
commit
165099ea42
2 changed files with 6 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue