PATCH: fix 32bit compile problem with IDE changes

From: Alan Cox
Date: Mon Aug 16 2004 - 08:55:10 EST


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


--- drivers/ide/ide-probe.c~ 2004-08-16 14:51:06.071010312 +0100
+++ drivers/ide/ide-probe.c 2004-08-16 14:51:06.071010312 +0100
@@ -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

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