Skip to content

Commit acc8dbe

Browse files
bzolnierdavem330
authored andcommitted
icside: DMA support fix
Fix problem introduced by commit 5e37bdc ("ide: add struct ide_dma_ops (take 3)"): d.dma_ops shouldn't be cleared if we are going to use DMA. Signed-off-by: Bartlomiej Zolnierkiewicz <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 839e730 commit acc8dbe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/ide/icside.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -521,8 +521,8 @@ icside_register_v6(struct icside_state *state, struct expansion_card *ec)
521521
if (ec->dma != NO_DMA && !request_dma(ec->dma, DRV_NAME)) {
522522
d.init_dma = icside_dma_init;
523523
d.port_ops = &icside_v6_port_ops;
524+
} else
524525
d.dma_ops = NULL;
525-
}
526526

527527
ret = ide_host_register(host, &d, hws);
528528
if (ret)

0 commit comments

Comments
 (0)