diff options
author | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2008-01-26 14:13:02 -0500 |
---|---|---|
committer | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2008-01-26 14:13:02 -0500 |
commit | f37aaf9edeba3f4ae10d22aefc09c06af9ea39b6 (patch) | |
tree | 167b73d875f3f5c36e9c4378d6e499cf08a46205 /drivers/ide/pci/cs5520.c | |
parent | 8ae60e34dd737ed3bef64b08130478393d9c4e8a (diff) |
ide: move drive->using_dma check to callers of ->dma_host_on method
Acked-by: Sergei Shtylyov <sshtylyov@ru.mvista.com>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Diffstat (limited to 'drivers/ide/pci/cs5520.c')
-rw-r--r-- | drivers/ide/pci/cs5520.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/ide/pci/cs5520.c b/drivers/ide/pci/cs5520.c index 78058ca2ce76..2bd52af83d37 100644 --- a/drivers/ide/pci/cs5520.c +++ b/drivers/ide/pci/cs5520.c | |||
@@ -109,8 +109,7 @@ static void cs5520_set_dma_mode(ide_drive_t *drive, const u8 speed) | |||
109 | 109 | ||
110 | static void cs5520_dma_host_on(ide_drive_t *drive) | 110 | static void cs5520_dma_host_on(ide_drive_t *drive) |
111 | { | 111 | { |
112 | if (drive->using_dma) | 112 | drive->vdma = 1; |
113 | drive->vdma = 1; | ||
114 | 113 | ||
115 | ide_dma_host_on(drive); | 114 | ide_dma_host_on(drive); |
116 | } | 115 | } |