Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755030Ab2BUNBV (ORCPT ); Tue, 21 Feb 2012 08:01:21 -0500 Received: from einhorn.in-berlin.de ([192.109.42.8]:49262 "EHLO einhorn.in-berlin.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753922Ab2BUNBU (ORCPT ); Tue, 21 Feb 2012 08:01:20 -0500 X-Envelope-From: stefanr@s5r6.in-berlin.de Date: Tue, 21 Feb 2012 14:01:03 +0100 From: Stefan Richter To: santosh nayak Cc: linux1394-devel@lists.sourceforge.net, linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org Subject: Re: [PATCH 1/2] Driver: firewire: Use the macro DMA_BIT_MASK(). Message-ID: <20120221140103.773d0962@stein> In-Reply-To: <1329818893-8276-1-git-send-email-santoshprasadnayak@gmail.com> References: <1329818893-8276-1-git-send-email-santoshprasadnayak@gmail.com> X-Mailer: Claws Mail 3.7.10 (GTK+ 2.24.8; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1321 Lines: 41 On Feb 21 santosh nayak wrote: > Use the macro DMA_BIT_MASK instead of the constant 0xffffffff > > Signed-off-by: Santosh Nayak > --- > drivers/firewire/nosy.c | 4 ++-- > 1 files changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/firewire/nosy.c b/drivers/firewire/nosy.c > index 763626b..a7c4422 100644 > --- a/drivers/firewire/nosy.c > +++ b/drivers/firewire/nosy.c > @@ -36,7 +36,7 @@ > #include > #include > #include > - > +#include > #include > #include > > @@ -536,7 +536,7 @@ add_card(struct pci_dev *dev, const struct pci_device_id *unused) > u32 p, end; > int ret, i; > > - if (pci_set_dma_mask(dev, 0xffffffff)) { > + if (pci_set_dma_mask(dev, DMA_BIT_MASK(32))) { > dev_err(&dev->dev, > "DMA address limits not supported for PCILynx hardware\n"); > return -ENXIO; Thanks, I will commit it to linux1394.git soon. -- Stefan Richter -=====-===-- --=- =-=-= http://arcgraph.de/sr/ -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/