[PATCH] ide_init_disk

From: Szabolcs Berecz
Date: Tue Mar 01 2005 - 08:53:21 EST



My /dev/hdb showed up as /dev/hdq

The bug was introduced with bk-ide-dev.patch

Bye,
Szabi

--- linux-2.6.11-rc4-mm1/drivers/ide/ide-probe.c.orig 2005-02-24 20:04:03.000000000 +0100
+++ linux-2.6.11-rc4-mm1/drivers/ide/ide-probe.c 2005-02-27 23:52:54.000000000 +0100
@@ -1269,7 +1269,7 @@
void ide_init_disk(struct gendisk *disk, ide_drive_t *drive)
{
ide_hwif_t *hwif = drive->hwif;
- unsigned int unit = drive->select.all & (1 << 4);
+ unsigned int unit = drive->select.b.unit;

disk->major = hwif->major;
disk->first_minor = unit << PARTN_BITS;

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/