sparc: Make SBUS DMA interfaces take struct device.

This is the first step in converting all the SBUS drivers
over to generic dma_*().

Signed-off-by: David S. Miller <davem@davemloft.net>
diff --git a/sound/sparc/dbri.c b/sound/sparc/dbri.c
index ee2e1b4..a6b32ec 100644
--- a/sound/sparc/dbri.c
+++ b/sound/sparc/dbri.c
@@ -2097,7 +2097,8 @@
 		else
 			direction = SBUS_DMA_FROMDEVICE;
 
-		info->dvma_buffer = sbus_map_single(dbri->sdev,
+		info->dvma_buffer =
+			sbus_map_single(&dbri->sdev->ofdev.dev,
 					runtime->dma_area,
 					params_buffer_bytes(hw_params),
 					direction);
@@ -2125,7 +2126,7 @@
 		else
 			direction = SBUS_DMA_FROMDEVICE;
 
-		sbus_unmap_single(dbri->sdev, info->dvma_buffer,
+		sbus_unmap_single(&dbri->sdev->ofdev.dev, info->dvma_buffer,
 				  substream->runtime->buffer_size, direction);
 		info->dvma_buffer = 0;
 	}
@@ -2524,7 +2525,8 @@
 	dbri->sdev = sdev;
 	dbri->irq = irq;
 
-	dbri->dma = sbus_alloc_consistent(sdev, sizeof(struct dbri_dma),
+	dbri->dma = sbus_alloc_consistent(&sdev->ofdev.dev,
+					  sizeof(struct dbri_dma),
 					  &dbri->dma_dvma);
 	memset((void *)dbri->dma, 0, sizeof(struct dbri_dma));
 
@@ -2537,7 +2539,7 @@
 				  dbri->regs_size, "DBRI Registers");
 	if (!dbri->regs) {
 		printk(KERN_ERR "DBRI: could not allocate registers\n");
-		sbus_free_consistent(sdev, sizeof(struct dbri_dma),
+		sbus_free_consistent(&sdev->ofdev.dev, sizeof(struct dbri_dma),
 				     (void *)dbri->dma, dbri->dma_dvma);
 		return -EIO;
 	}
@@ -2547,7 +2549,7 @@
 	if (err) {
 		printk(KERN_ERR "DBRI: Can't get irq %d\n", dbri->irq);
 		sbus_iounmap(dbri->regs, dbri->regs_size);
-		sbus_free_consistent(sdev, sizeof(struct dbri_dma),
+		sbus_free_consistent(&sdev->ofdev.dev, sizeof(struct dbri_dma),
 				     (void *)dbri->dma, dbri->dma_dvma);
 		return err;
 	}
@@ -2575,7 +2577,8 @@
 		sbus_iounmap(dbri->regs, dbri->regs_size);
 
 	if (dbri->dma)
-		sbus_free_consistent(dbri->sdev, sizeof(struct dbri_dma),
+		sbus_free_consistent(&dbri->sdev->ofdev.dev,
+				     sizeof(struct dbri_dma),
 				     (void *)dbri->dma, dbri->dma_dvma);
 }