ide: remove dead code from ide_driveid_update()

* Remove dead code from ide_driveid_update().

While at it:

* Remove useless comment.

* s/HWIF(drive)/drive->hwif/

Acked-by: Sergei Shtylyov <sshtylyov@ru.mvista.com>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
This commit is contained in:
Bartlomiej Zolnierkiewicz 2007-10-20 00:32:36 +02:00
parent bbc615b16d
commit 8a45513409
1 changed files with 3 additions and 23 deletions

View File

@ -693,35 +693,16 @@ static u8 ide_auto_reduce_xfer (ide_drive_t *drive)
} }
#endif /* CONFIG_BLK_DEV_IDEDMA */ #endif /* CONFIG_BLK_DEV_IDEDMA */
/* int ide_driveid_update(ide_drive_t *drive)
* Update the
*/
int ide_driveid_update (ide_drive_t *drive)
{ {
ide_hwif_t *hwif = HWIF(drive); ide_hwif_t *hwif = drive->hwif;
struct hd_driveid *id; struct hd_driveid *id;
#if 0 unsigned long timeout, flags;
id = kmalloc(SECTOR_WORDS*4, GFP_ATOMIC);
if (!id)
return 0;
taskfile_lib_get_identify(drive, (char *)&id);
ide_fix_driveid(id);
if (id) {
drive->id->dma_ultra = id->dma_ultra;
drive->id->dma_mword = id->dma_mword;
drive->id->dma_1word = id->dma_1word;
/* anything more ? */
kfree(id);
}
return 1;
#else
/* /*
* Re-read drive->id for possible DMA mode * Re-read drive->id for possible DMA mode
* change (copied from ide-probe.c) * change (copied from ide-probe.c)
*/ */
unsigned long timeout, flags;
SELECT_MASK(drive, 1); SELECT_MASK(drive, 1);
if (IDE_CONTROL_REG) if (IDE_CONTROL_REG)
@ -763,7 +744,6 @@ int ide_driveid_update (ide_drive_t *drive)
} }
return 1; return 1;
#endif
} }
int ide_config_drive_speed(ide_drive_t *drive, u8 speed) int ide_config_drive_speed(ide_drive_t *drive, u8 speed)