Skip to content

Commit e894d1d

Browse files
santosh nayakStefan Richter
santosh nayak
authored and
Stefan Richter
committed
firewire: nosy: Use the macro DMA_BIT_MASK().
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>
1 parent ea102d0 commit e894d1d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/firewire/nosy.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
#include <linux/timex.h>
3737
#include <linux/uaccess.h>
3838
#include <linux/wait.h>
39-
39+
#include <linux/dma-mapping.h>
4040
#include <linux/atomic.h>
4141
#include <asm/byteorder.h>
4242

@@ -536,7 +536,7 @@ add_card(struct pci_dev *dev, const struct pci_device_id *unused)
536536
u32 p, end;
537537
int ret, i;
538538

539-
if (pci_set_dma_mask(dev, 0xffffffff)) {
539+
if (pci_set_dma_mask(dev, DMA_BIT_MASK(32))) {
540540
dev_err(&dev->dev,
541541
"DMA address limits not supported for PCILynx hardware\n");
542542
return -ENXIO;

0 commit comments

Comments
 (0)