Skip to contentSkip to conversation

PATCH: fix 32bit compile problem with IDE changes

PATCH Alan Cox 1 participant 1 message Aug 16, 2004 libata

lore
Share & tools
lore

Alan Cox

author
#0 lore raw

This fixes the 32bit compile problem some people had. Since we fixed the underlying issue now we can lose the geometry hack

ide/ide-probe.c renamed from ide/ide-probe.c~ +0 -11
@@ -557,17 +557,6 @@
 	if(strstr(id->model, "Integrated Technology Express"))
 	{
 		/* IT821x raid volume with bogus ident block */
-		if(id->lba_capacity >= 0x200000)
-		{
-			id->sectors = 63;
-			id->heads = 255;
-		}
-		else
-		{
-			id->sectors = 32;
-			id->heads = 64;
-		}
-		id->cyls = id->lba_capacity_2 / (id->heads * id->sectors);
 		/* LBA28 is ok, DMA is ok, UDMA data is valid */
 		id->capability |= 3;
 		id->field_valid |= 7;
Signed-off-by Alan Cox