Commit e894d1d7 authored by santosh nayak's avatar santosh nayak Committed by Stefan Richter

firewire: nosy: Use the macro DMA_BIT_MASK().

Use the macro DMA_BIT_MASK instead of the constant  0xffffffff
Signed-off-by: default avatarSantosh Nayak <santoshprasadnayak@gmail.com>
Signed-off-by: default avatarStefan Richter <stefanr@s5r6.in-berlin.de>
parent ea102d0e
...@@ -36,7 +36,7 @@ ...@@ -36,7 +36,7 @@
#include <linux/timex.h> #include <linux/timex.h>
#include <linux/uaccess.h> #include <linux/uaccess.h>
#include <linux/wait.h> #include <linux/wait.h>
#include <linux/dma-mapping.h>
#include <linux/atomic.h> #include <linux/atomic.h>
#include <asm/byteorder.h> #include <asm/byteorder.h>
...@@ -536,7 +536,7 @@ add_card(struct pci_dev *dev, const struct pci_device_id *unused) ...@@ -536,7 +536,7 @@ add_card(struct pci_dev *dev, const struct pci_device_id *unused)
u32 p, end; u32 p, end;
int ret, i; int ret, i;
if (pci_set_dma_mask(dev, 0xffffffff)) { if (pci_set_dma_mask(dev, DMA_BIT_MASK(32))) {
dev_err(&dev->dev, dev_err(&dev->dev,
"DMA address limits not supported for PCILynx hardware\n"); "DMA address limits not supported for PCILynx hardware\n");
return -ENXIO; return -ENXIO;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment