Skip to content

Commit

Permalink
firewire: nosy: Use the macro DMA_BIT_MASK().
Browse files Browse the repository at this point in the history
Use the macro DMA_BIT_MASK instead of the constant  0xffffffff

Signed-off-by: Santosh Nayak <santoshprasadnayak@gmail.com>
Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
  • Loading branch information
santosh nayak authored and Stefan Richter committed Feb 22, 2012
1 parent ea102d0 commit e894d1d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/firewire/nosy.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
#include <linux/timex.h>
#include <linux/uaccess.h>
#include <linux/wait.h>

#include <linux/dma-mapping.h>
#include <linux/atomic.h>
#include <asm/byteorder.h>

Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit e894d1d

Please sign in to comment.