]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
macide: remove drive->capacity64 quirk
authorBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Sat, 2 Feb 2008 18:56:30 +0000 (19:56 +0100)
committerBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Sat, 2 Feb 2008 18:56:30 +0000 (19:56 +0100)
Nowadays IDE core always provides drive ID and ide-disk always setups
drive->capacity64 so this quirk is no longer needed.

Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
drivers/ide/legacy/macide.c

index c54d07ff64fe62910ca9f1f8445fda3483b7fb51..12cd26d0aa20aec8d5acabbb1c9288b9767749b9 100644 (file)
@@ -123,16 +123,6 @@ static int __init macide_init(void)
                ide_init_port_data(hwif, index);
                ide_init_port_hw(hwif, &hw);
 
-               if (macintosh_config->ide_type == MAC_IDE_BABOON &&
-                   macintosh_config->ident == MAC_MODEL_PB190) {
-                       /* Fix breakage in ide-disk.c: drive capacity   */
-                       /* is not initialized for drives without a      */
-                       /* hardware ID, and we can't get that without   */
-                       /* probing the drive which freezes a 190.       */
-                       ide_drive_t *drive = &hwif->drives[0];
-                       drive->capacity64 = drive->cyl*drive->head*drive->sect;
-               }
-
                hwif->mmio = 1;
 
                ide_device_add(idx);