aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/spi/spi_bfin5xx.c
diff options
context:
space:
mode:
authorMike Frysinger <vapier.adi@gmail.com>2009-04-06 22:00:37 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2009-04-07 11:31:05 -0400
commit59bfcc664859029f60269ca2bf05b310d5a5760b (patch)
tree214171f2141157176f7a07d785f1cb3b243d60b0 /drivers/spi/spi_bfin5xx.c
parent7aec35661733c651f616f9b3f69d758f6bfe2a7f (diff)
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: Mike Frysinger <vapier.adi@gmail.com> Signed-off-by: Bryan Wu <cooloney@kernel.org> Acked-by: David Brownell <dbrownell@users.sourceforge.net> Cc: David Brownell <david-b@pacbell.net> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/spi/spi_bfin5xx.c')
-rw-r--r--drivers/spi/spi_bfin5xx.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/spi/spi_bfin5xx.c b/drivers/spi/spi_bfin5xx.c
index 4e45a3f7c15e..0bbe19eafc26 100644
--- a/drivers/spi/spi_bfin5xx.c
+++ b/drivers/spi/spi_bfin5xx.c
@@ -1077,13 +1077,13 @@ static int setup(struct spi_device *spi)
1077 */ 1077 */
1078 if (chip->enable_dma && !drv_data->dma_requested) { 1078 if (chip->enable_dma && !drv_data->dma_requested) {
1079 /* register dma irq handler */ 1079 /* register dma irq handler */
1080 if (request_dma(drv_data->dma_channel, "BF53x_SPI_DMA") < 0) { 1080 if (request_dma(drv_data->dma_channel, "BFIN_SPI_DMA") < 0) {
1081 dev_dbg(&spi->dev, 1081 dev_dbg(&spi->dev,
1082 "Unable to request BlackFin SPI DMA channel\n"); 1082 "Unable to request BlackFin SPI DMA channel\n");
1083 return -ENODEV; 1083 return -ENODEV;
1084 } 1084 }
1085 if (set_dma_callback(drv_data->dma_channel, 1085 if (set_dma_callback(drv_data->dma_channel,
1086 (void *)dma_irq_handler, drv_data) < 0) { 1086 dma_irq_handler, drv_data) < 0) {
1087 dev_dbg(&spi->dev, "Unable to set dma callback\n"); 1087 dev_dbg(&spi->dev, "Unable to set dma callback\n");
1088 return -EPERM; 1088 return -EPERM;
1089 } 1089 }