From patchwork Fri Dec 4 20:39:00 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergei Shtylyov X-Patchwork-Id: 40365 X-Patchwork-Delegate: davem@davemloft.net Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by ozlabs.org (Postfix) with ESMTP id BB1E6B7C00 for ; Sat, 5 Dec 2009 07:37:55 +1100 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757170AbZLDUhr (ORCPT ); Fri, 4 Dec 2009 15:37:47 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1757249AbZLDUhr (ORCPT ); Fri, 4 Dec 2009 15:37:47 -0500 Received: from gateway-1237.mvista.com ([206.112.117.35]:19271 "HELO imap.sh.mvista.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with SMTP id S1757170AbZLDUhr (ORCPT ); Fri, 4 Dec 2009 15:37:47 -0500 Received: from wasted.dev.rtsoft.ru (unknown [10.150.0.9]) by imap.sh.mvista.com (Postfix) with SMTP id CEEE63ED8; Fri, 4 Dec 2009 12:37:52 -0800 (PST) From: Sergei Shtylyov Organization: MontaVista Software Inc. To: jgarzik@pobox.com Subject: [PATCH 2/2] pata_cs5520: use ATA_DMA_* constants Date: Sat, 5 Dec 2009 00:39:00 +0400 User-Agent: KMail/1.5 Cc: linux-ide@vger.kernel.org, alan@lxorguk.ukuu.org.uk MIME-Version: 1.0 Content-Disposition: inline Message-Id: <200912042339.00746.sshtylyov@ru.mvista.com> Sender: linux-ide-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-ide@vger.kernel.org Use ATA_DMA_* constants instead of the bare numbers for the BMIDE registers. Signed-off-by: Sergei Shtylyov --- The patch is against the recent Linus' tree. drivers/ata/pata_cs5520.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) -- To unsubscribe from this list: send the line "unsubscribe linux-ide" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html 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); } /**