Use ATA_DMA_* constants instead of the bare numbers for the BMIDE registers. Signed-off-by: Sergei Shtylyov <sshtylyov@xxxxxxxxxxxxx> --- The patch is against the recent Linus' tree. drivers/ata/pata_cs5520.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) Index: linux-2.6/drivers/ata/pata_cs5520.c =================================================================== --- linux-2.6.orig/drivers/ata/pata_cs5520.c +++ linux-2.6/drivers/ata/pata_cs5520.c @@ -99,9 +99,9 @@ static void cs5520_set_timings(struct at static void cs5520_enable_dma(struct ata_port *ap, struct ata_device *adev) { /* Set the DMA enable/disable flag */ - u8 reg = ioread8(ap->ioaddr.bmdma_addr + 0x02); - reg |= 1<<(adev->devno + 5); - iowrite8(reg, ap->ioaddr.bmdma_addr + 0x02); + u8 reg = ioread8(ap->ioaddr.bmdma_addr + ATA_DMA_STATUS); + reg |= 1 << (adev->devno + 5); + iowrite8(reg, ap->ioaddr.bmdma_addr + ATA_DMA_STATUS); } /** -- To unsubscribe from this list: send the line "unsubscribe linux-ide" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html