Commit 59bfcc66 authored by Mike Frysinger's avatar Mike Frysinger Committed by Linus Torvalds
Browse files

Blackfin SPI Driver: drop bogus cast and touchup dma label

Blackfin's related DMA callback API doesn't need void * cast, so drop it.
And this driver is for all Blackfin processors not only for BF53x, we
update the DMA request label for more meaningful information.
Signed-off-by: default avatarMike Frysinger <>
Signed-off-by: default avatarBryan Wu <>
Acked-by: default avatarDavid Brownell <>
Cc: David Brownell <>
Signed-off-by: default avatarAndrew Morton <>
Signed-off-by: default avatarLinus Torvalds <>
parent 7aec3566
......@@ -1077,13 +1077,13 @@ static int setup(struct spi_device *spi)
if (chip->enable_dma && !drv_data->dma_requested) {
/* register dma irq handler */
if (request_dma(drv_data->dma_channel, "BF53x_SPI_DMA") < 0) {
if (request_dma(drv_data->dma_channel, "BFIN_SPI_DMA") < 0) {
"Unable to request BlackFin SPI DMA channel\n");
return -ENODEV;
if (set_dma_callback(drv_data->dma_channel,
(void *)dma_irq_handler, drv_data) < 0) {
dma_irq_handler, drv_data) < 0) {
dev_dbg(&spi->dev, "Unable to set dma callback\n");
return -EPERM;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment