aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ucc_geth.c
diff options
context:
space:
mode:
authorAnton Vorontsov <avorontsov@ru.mvista.com>2007-09-13 11:23:33 -0400
committerJeff Garzik <jeff@garzik.org>2007-09-15 19:32:01 -0400
commit62270336e8fdfbea36cb455c27744c23780dbf07 (patch)
tree26b2045acb04625f824441fe22a51da8d9d6a570 /drivers/net/ucc_geth.c
parente7e381f639657b2e681ff6fb31e131db360550ac (diff)
ucc_geth: fix compilation
Currently qe_bd_t is used in the macro call -- dma_unmap_single, which is a no-op on PPC32, thus error is hidden today. Starting with 2.6.24, macro will be replaced by the empty static function, and erroneous use of qe_bd_t will trigger compilation error. Signed-off-by: Anton Vorontsov <avorontsov@ru.mvista.com> Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'drivers/net/ucc_geth.c')
-rw-r--r--drivers/net/ucc_geth.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ucc_geth.c b/drivers/net/ucc_geth.c
index 12e01b24105a..9a38dfe45f8f 100644
--- a/drivers/net/ucc_geth.c
+++ b/drivers/net/ucc_geth.c
@@ -2148,7 +2148,7 @@ static void ucc_geth_memclean(struct ucc_geth_private *ugeth)
2148 for (j = 0; j < ugeth->ug_info->bdRingLenTx[i]; j++) { 2148 for (j = 0; j < ugeth->ug_info->bdRingLenTx[i]; j++) {
2149 if (ugeth->tx_skbuff[i][j]) { 2149 if (ugeth->tx_skbuff[i][j]) {
2150 dma_unmap_single(NULL, 2150 dma_unmap_single(NULL,
2151 ((qe_bd_t *)bd)->buf, 2151 ((struct qe_bd *)bd)->buf,
2152 (in_be32((u32 *)bd) & 2152 (in_be32((u32 *)bd) &
2153 BD_LENGTH_MASK), 2153 BD_LENGTH_MASK),
2154 DMA_TO_DEVICE); 2154 DMA_TO_DEVICE);