aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/hw
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/infiniband/hw')
-rw-r--r--drivers/infiniband/hw/ipath/ipath_driver.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/infiniband/hw/ipath/ipath_driver.c b/drivers/infiniband/hw/ipath/ipath_driver.c
index 2d336b48f3d7..467816043d10 100644
--- a/drivers/infiniband/hw/ipath/ipath_driver.c
+++ b/drivers/infiniband/hw/ipath/ipath_driver.c
@@ -1350,7 +1350,7 @@ int ipath_create_rcvhdrq(struct ipath_devdata *dd,
1350 1350
1351 /* clear for security and sanity on each use */ 1351 /* clear for security and sanity on each use */
1352 memset(pd->port_rcvhdrq, 0, pd->port_rcvhdrq_size); 1352 memset(pd->port_rcvhdrq, 0, pd->port_rcvhdrq_size);
1353 memset((void *)pd->port_rcvhdrtail_kvaddr, 0, PAGE_SIZE); 1353 memset(pd->port_rcvhdrtail_kvaddr, 0, PAGE_SIZE);
1354 1354
1355 /* 1355 /*
1356 * tell chip each time we init it, even if we are re-using previous 1356 * tell chip each time we init it, even if we are re-using previous
@@ -1803,7 +1803,7 @@ void ipath_free_pddata(struct ipath_devdata *dd, struct ipath_portdata *pd)
1803 pd->port_rcvhdrq = NULL; 1803 pd->port_rcvhdrq = NULL;
1804 if (pd->port_rcvhdrtail_kvaddr) { 1804 if (pd->port_rcvhdrtail_kvaddr) {
1805 dma_free_coherent(&dd->pcidev->dev, PAGE_SIZE, 1805 dma_free_coherent(&dd->pcidev->dev, PAGE_SIZE,
1806 (void *)pd->port_rcvhdrtail_kvaddr, 1806 pd->port_rcvhdrtail_kvaddr,
1807 pd->port_rcvhdrqtailaddr_phys); 1807 pd->port_rcvhdrqtailaddr_phys);
1808 pd->port_rcvhdrtail_kvaddr = NULL; 1808 pd->port_rcvhdrtail_kvaddr = NULL;
1809 } 1809 }
@@ -1934,7 +1934,7 @@ static void cleanup_device(struct ipath_devdata *dd)
1934 1934
1935 if (dd->ipath_pioavailregs_dma) { 1935 if (dd->ipath_pioavailregs_dma) {
1936 dma_free_coherent(&dd->pcidev->dev, PAGE_SIZE, 1936 dma_free_coherent(&dd->pcidev->dev, PAGE_SIZE,
1937 (void *) dd->ipath_pioavailregs_dma, 1937 dd->ipath_pioavailregs_dma,
1938 dd->ipath_pioavailregs_phys); 1938 dd->ipath_pioavailregs_phys);
1939 dd->ipath_pioavailregs_dma = NULL; 1939 dd->ipath_pioavailregs_dma = NULL;
1940 } 1940 }