ASoC: sh: fix fsi build warnings for 64 bit
[sfrench/cifs-2.6.git] / sound / soc / sh / fsi.c
index 0215c78cbddf5491712c9e4d9bbcdb8e1229fa10..ead520182e2684fb4c8109f913e4148ecb4b2227 100644 (file)
@@ -1362,15 +1362,18 @@ static int fsi_dma_push_start_stop(struct fsi_priv *fsi, struct fsi_stream *io,
 
 static int fsi_dma_probe(struct fsi_priv *fsi, struct fsi_stream *io, struct device *dev)
 {
-       dma_cap_mask_t mask;
        int is_play = fsi_stream_is_play(fsi, io);
 
+#ifdef CONFIG_SUPERH
+       dma_cap_mask_t mask;
        dma_cap_zero(mask);
        dma_cap_set(DMA_SLAVE, mask);
 
-       io->chan = dma_request_slave_channel_compat(mask,
-                               shdma_chan_filter, (void *)io->dma_id,
-                               dev, is_play ? "tx" : "rx");
+       io->chan = dma_request_channel(mask, shdma_chan_filter,
+                                      (void *)io->dma_id);
+#else
+       io->chan = dma_request_slave_channel(dev, is_play ? "tx" : "rx");
+#endif
        if (io->chan) {
                struct dma_slave_config cfg = {};
                int ret;