Commit 047eac4a authored by Jeff Garzik's avatar Jeff Garzik Committed by Linus Torvalds

[PATCH] fix sx8 blk driver device naming

Attached fixes sysfs naming of sx8 block devs to follow LANANA naming.

You then get /sys/block/sx8!0, etc instead of /sys/block/sx80_0 (device
names should be /dev/sx8/0 instead of /dev/sx80_0)
Signed-off-by: default avatarJeff Garzik <jgarzik@pobox.com>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent c6ee465a
......@@ -1503,7 +1503,7 @@ static int carm_init_disks(struct carm_host *host)
}
port->disk = disk;
sprintf(disk->disk_name, DRV_NAME "%u_%u", host->id, i);
sprintf(disk->disk_name, DRV_NAME "/%u", (host->id * CARM_MAX_PORTS) + i);
sprintf(disk->devfs_name, DRV_NAME "/%u_%u", host->id, i);
disk->major = host->major;
disk->first_minor = i * CARM_MINORS_PER_MAJOR;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment