From: Mike Frysinger Date: Tue, 7 Apr 2009 02:00:39 +0000 (-0700) Subject: Blackfin SPI Driver: use the properl BIT_CTL_xxx defines X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=b31e27a6dc2c6534399c595ba78390125a56e90f;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git Blackfin SPI Driver: use the properl BIT_CTL_xxx defines use the properl BIT_CTL_... defines rather than the internal driv er CFG_SPI_... defines Signed-off-by: Mike Frysinger Signed-off-by: Bryan Wu Cc: David Brownell Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/spi/spi_bfin5xx.c b/drivers/spi/spi_bfin5xx.c index 5ebb67b011d0..1c10efb120db 100644 --- a/drivers/spi/spi_bfin5xx.c +++ b/drivers/spi/spi_bfin5xx.c @@ -799,7 +799,7 @@ static void pump_transfers(unsigned long data) /* start SPI transfer */ write_CTRL(drv_data, - (cr | CFG_SPI_DMAWRITE | BIT_CTL_ENABLE)); + (cr | BIT_CTL_TIMOD_DMA_TX | BIT_CTL_ENABLE)); /* just return here, there can only be one transfer * in this mode @@ -827,7 +827,7 @@ static void pump_transfers(unsigned long data) dma_config |= WNR; dma_start_addr = (unsigned long)drv_data->rx; - cr |= CFG_SPI_DMAREAD; + cr |= BIT_CTL_TIMOD_DMA_RX | BIT_CTL_SENDOPT; } else if (drv_data->tx != NULL) { dev_dbg(&drv_data->pdev->dev, "doing DMA out.\n"); @@ -839,7 +839,7 @@ static void pump_transfers(unsigned long data) drv_data->len_in_bytes)); dma_start_addr = (unsigned long)drv_data->tx; - cr |= CFG_SPI_DMAWRITE; + cr |= BIT_CTL_TIMOD_DMA_TX; } else BUG();