linux-mips
[Top] [All Lists]

[PATCH 1/3] ar7: use DMA_BIT_MASK(nn) instead of deprecated DMA_nnBIT_MA

To: linux-mips@linux-mips.org
Subject: [PATCH 1/3] ar7: use DMA_BIT_MASK(nn) instead of deprecated DMA_nnBIT_MASK
From: Florian Fainelli <florian@openwrt.org>
Date: Fri, 24 Jul 2009 13:18:16 +0200
Cc: Ralf Baechle <ralf@linux-mips.org>
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:from:date:subject :mime-version:x-uid:x-length:to:cc:content-type :content-transfer-encoding:content-disposition:message-id; bh=gW8xZseDWqicA1EdninbI15ajKFMvYZ9VRBsjilvfg0=; b=UejrehriyZZ36ybMX1Asm8ejymCsOM2w8iY+xWEas3lWx7C43aoulhmxC8Ez+2fGYf TsoBxSmfR86e9tsXvKDtcPqs3DRRVogQyA/0d4quRBWTrU2sDS5H1eW6re7yx1M1jX8g 0lVob/7L871XULXgAQhqzDWVWvkZp4hcLpZ74=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:from:date:subject:mime-version:x-uid:x-length:to:cc :content-type:content-transfer-encoding:content-disposition :message-id; b=pkpViJHzuUNU8fri7QRGKO3icPW38uRe/5SSJWEEpxNTrFfPEi+K7iPOewFRHAm4IM 5FgDEujbgfJfVNMeZ9vbwDmR8VlszmMDhZC+YSMXj6C44DMzgWzszdsbJPp8XGJGuIt1 52w3eFt6ee3btzomDTdYRjYKDb4IXpnvxb31o=
Original-recipient: rfc822;linux-mips@linux-mips.org
Sender: linux-mips-bounce@linux-mips.org
Replaced use of DMA_nnBIT_MASK by DMA_BIT_MASK(nn).

Signed-off-by: Florian Fainelli <florian@openwrt.org>
---
diff --git a/arch/mips/ar7/platform.c b/arch/mips/ar7/platform.c
index d0624d8..21d43f2 100644
--- a/arch/mips/ar7/platform.c
+++ b/arch/mips/ar7/platform.c
@@ -242,13 +242,13 @@ static struct platform_device physmap_flash = {
        .num_resources = 1,
 };
 
-static u64 cpmac_dma_mask = DMA_32BIT_MASK;
+static u64 cpmac_dma_mask = DMA_BIT_MASK(32);
 static struct platform_device cpmac_low = {
        .id = 0,
        .name = "cpmac",
        .dev = {
                .dma_mask = &cpmac_dma_mask,
-               .coherent_dma_mask = DMA_32BIT_MASK,
+               .coherent_dma_mask = DMA_BIT_MASK(32),
                .platform_data = &cpmac_low_data,
        },
        .resource = cpmac_low_res,
@@ -260,7 +260,7 @@ static struct platform_device cpmac_high = {
        .name = "cpmac",
        .dev = {
                .dma_mask = &cpmac_dma_mask,
-               .coherent_dma_mask = DMA_32BIT_MASK,
+               .coherent_dma_mask = DMA_BIT_MASK(32),
                .platform_data = &cpmac_high_data,
        },
        .resource = cpmac_high_res,

<Prev in Thread] Current Thread [Next in Thread>