diff options
Diffstat (limited to 'drivers/ide/ide-dma-sff.c')
-rw-r--r-- | drivers/ide/ide-dma-sff.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/ide/ide-dma-sff.c b/drivers/ide/ide-dma-sff.c index cac431f0df17..1f2a5f56f81c 100644 --- a/drivers/ide/ide-dma-sff.c +++ b/drivers/ide/ide-dma-sff.c | |||
@@ -98,10 +98,10 @@ int ide_build_dmatable(ide_drive_t *drive, struct request *rq) | |||
98 | { | 98 | { |
99 | ide_hwif_t *hwif = drive->hwif; | 99 | ide_hwif_t *hwif = drive->hwif; |
100 | __le32 *table = (__le32 *)hwif->dmatable_cpu; | 100 | __le32 *table = (__le32 *)hwif->dmatable_cpu; |
101 | unsigned int is_trm290 = (hwif->chipset == ide_trm290) ? 1 : 0; | ||
102 | unsigned int count = 0; | 101 | unsigned int count = 0; |
103 | int i; | 102 | int i; |
104 | struct scatterlist *sg; | 103 | struct scatterlist *sg; |
104 | u8 is_trm290 = !!(hwif->host_flags & IDE_HFLAG_TRM290); | ||
105 | 105 | ||
106 | hwif->sg_nents = ide_build_sglist(drive, rq); | 106 | hwif->sg_nents = ide_build_sglist(drive, rq); |
107 | if (hwif->sg_nents == 0) | 107 | if (hwif->sg_nents == 0) |