aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/cdrom
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/cdrom')
-rw-r--r--drivers/cdrom/viocd.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/cdrom/viocd.c b/drivers/cdrom/viocd.c
index b88fdebe77f6..c081e5400ce0 100644
--- a/drivers/cdrom/viocd.c
+++ b/drivers/cdrom/viocd.c
@@ -220,7 +220,7 @@ static void __init get_viocd_info(void)
220 struct cdrom_info *viocd_unitinfo; 220 struct cdrom_info *viocd_unitinfo;
221 dma_addr_t unitinfo_dmaaddr; 221 dma_addr_t unitinfo_dmaaddr;
222 222
223 viocd_unitinfo = dma_alloc_coherent(iSeries_vio_dev, 223 viocd_unitinfo = iseries_hv_alloc(
224 sizeof(*viocd_unitinfo) * VIOCD_MAX_CD, 224 sizeof(*viocd_unitinfo) * VIOCD_MAX_CD,
225 &unitinfo_dmaaddr, GFP_ATOMIC); 225 &unitinfo_dmaaddr, GFP_ATOMIC);
226 if (viocd_unitinfo == NULL) { 226 if (viocd_unitinfo == NULL) {
@@ -262,8 +262,7 @@ static void __init get_viocd_info(void)
262 } 262 }
263 263
264error_ret: 264error_ret:
265 dma_free_coherent(iSeries_vio_dev, 265 iseries_hv_free(sizeof(*viocd_unitinfo) * VIOCD_MAX_CD,
266 sizeof(*viocd_unitinfo) * VIOCD_MAX_CD,
267 viocd_unitinfo, unitinfo_dmaaddr); 266 viocd_unitinfo, unitinfo_dmaaddr);
268} 267}
269 268