diff options
author | Stephen Rothwell <sfr@canb.auug.org.au> | 2007-10-11 00:53:32 -0400 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2007-10-11 06:40:45 -0400 |
commit | 1670b2b2716b98541765da94be1332ad5c314b7a (patch) | |
tree | 872def623a8b58907801001093a3350ae161395e /drivers | |
parent | 73be7d5267774b8fef1d83ebffc070cd090c4398 (diff) |
[POWERPC] Remove iSeries_vio_dev
It was only being used to carry around dma_iommu_ops and vio_iommu_table
which we can use directly instead. This also means that vio_bus_device
doesn't need to refer to them either.
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Acked-by: Jens Axboe <jens.axboe@oracle.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/cdrom/viocd.c | 5 | ||||
-rw-r--r-- | drivers/char/viotape.c | 7 |
2 files changed, 5 insertions, 7 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 | ||
264 | error_ret: | 264 | error_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 | ||
diff --git a/drivers/char/viotape.c b/drivers/char/viotape.c index e12275df6ea2..064c09195215 100644 --- a/drivers/char/viotape.c +++ b/drivers/char/viotape.c | |||
@@ -392,8 +392,8 @@ static int get_viotape_info(void) | |||
392 | if (op == NULL) | 392 | if (op == NULL) |
393 | return -ENOMEM; | 393 | return -ENOMEM; |
394 | 394 | ||
395 | viotape_unitinfo = dma_alloc_coherent(iSeries_vio_dev, len, | 395 | viotape_unitinfo = iseries_hv_alloc(len, &viotape_unitinfo_token, |
396 | &viotape_unitinfo_token, GFP_ATOMIC); | 396 | GFP_ATOMIC); |
397 | if (viotape_unitinfo == NULL) { | 397 | if (viotape_unitinfo == NULL) { |
398 | free_op_struct(op); | 398 | free_op_struct(op); |
399 | return -ENOMEM; | 399 | return -ENOMEM; |
@@ -1103,8 +1103,7 @@ static void __exit viotap_exit(void) | |||
1103 | class_destroy(tape_class); | 1103 | class_destroy(tape_class); |
1104 | unregister_chrdev(VIOTAPE_MAJOR, "viotape"); | 1104 | unregister_chrdev(VIOTAPE_MAJOR, "viotape"); |
1105 | if (viotape_unitinfo) | 1105 | if (viotape_unitinfo) |
1106 | dma_free_coherent(iSeries_vio_dev, | 1106 | iseries_hv_free(sizeof(viotape_unitinfo[0]) * VIOTAPE_MAX_TAPE, |
1107 | sizeof(viotape_unitinfo[0]) * VIOTAPE_MAX_TAPE, | ||
1108 | viotape_unitinfo, viotape_unitinfo_token); | 1107 | viotape_unitinfo, viotape_unitinfo_token); |
1109 | viopath_close(viopath_hostLp, viomajorsubtype_tape, VIOTAPE_MAXREQ + 2); | 1108 | viopath_close(viopath_hostLp, viomajorsubtype_tape, VIOTAPE_MAXREQ + 2); |
1110 | vio_clearHandler(viomajorsubtype_tape); | 1109 | vio_clearHandler(viomajorsubtype_tape); |