From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alan Cox Subject: PATCH: fix 32bit compile problem with IDE changes Date: Mon, 16 Aug 2004 09:53:04 -0400 Sender: linux-ide-owner@vger.kernel.org Message-ID: <20040816135304.GA26511@devserv.devel.redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mx1.redhat.com ([66.187.233.31]:45491 "EHLO mx1.redhat.com") by vger.kernel.org with ESMTP id S267625AbUHPNyF (ORCPT ); Mon, 16 Aug 2004 09:54:05 -0400 Content-Disposition: inline List-Id: linux-ide@vger.kernel.org To: linux-ide@vger.kernel.org, linux-kernel@vger.kernel.org, torvalds@osdl.org 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