projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ea102d0
)
firewire: nosy: Use the macro DMA_BIT_MASK().
author
santosh nayak
<
[email protected]
>
Tue, 21 Feb 2012 10:08:13 +0000
(15:38 +0530)
committer
Stefan Richter
<
[email protected]
>
Wed, 22 Feb 2012 21:36:01 +0000
(22:36 +0100)
Use the macro DMA_BIT_MASK instead of the constant 0xffffffff
Signed-off-by: Santosh Nayak <
[email protected]
>
Signed-off-by: Stefan Richter <
[email protected]
>
drivers/firewire/nosy.c
patch
|
blob
|
history
diff --git
a/drivers/firewire/nosy.c
b/drivers/firewire/nosy.c
index 763626b739d1c8593628712dbafc01af76cf1254..a7c4422a688eadb572adda7de911ff3ae8632111 100644
(file)
--- a/
drivers/firewire/nosy.c
+++ b/
drivers/firewire/nosy.c
@@
-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>
@@
-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;