projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2297a2d
)
bnx2x: Use dma_alloc_coherent() semantics for ILT memory allocation
author
Vladislav Zolotarov
<vladz@broadcom.com>
Wed, 8 Dec 2010 01:43:17 +0000
(
01:43
+0000)
committer
David S. Miller
<davem@davemloft.net>
Fri, 10 Dec 2010 04:50:01 +0000
(20:50 -0800)
Signed-off-by: Vladislav Zolotarov <vladz@broadcom.com>
Signed-off-by: Eilon Greenstein <eilong@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/bnx2x/bnx2x.h
patch
|
blob
|
blame
|
history
diff --git
a/drivers/net/bnx2x/bnx2x.h
b/drivers/net/bnx2x/bnx2x.h
index cfc25cf064d3ad84ec28e3bfd8d0cf15d7669e84..abbdf6d5b84ea018041ba6acc33a1ddc6379733e 100644
(file)
--- a/
drivers/net/bnx2x/bnx2x.h
+++ b/
drivers/net/bnx2x/bnx2x.h
@@
-1336,7
+1336,7
@@
static inline u32 reg_poll(struct bnx2x *bp, u32 reg, u32 expected, int ms,
#define BNX2X_ILT_ZALLOC(x, y, size) \
do { \
- x =
pci_alloc_consistent(bp->pdev, size, y
); \
+ x =
dma_alloc_coherent(&bp->pdev->dev, size, y, GFP_KERNEL
); \
if (x) \
memset(x, 0, size); \
} while (0)
@@
-1344,7
+1344,7
@@
static inline u32 reg_poll(struct bnx2x *bp, u32 reg, u32 expected, int ms,
#define BNX2X_ILT_FREE(x, y, size) \
do { \
if (x) { \
-
pci_free_consistent(bp->p
dev, size, x, y); \
+
dma_free_coherent(&bp->pdev->
dev, size, x, y); \
x = NULL; \
y = 0; \
} \