Commit c3c475c2 authored by Brian Niebuhr's avatar Brian Niebuhr Committed by Sekhar Nori

spi: davinci: remove unused variable 'pdata'

The 'pdata' variable is unused in couple of routines.

Remove such occurences.
Signed-off-by: default avatarBrian Niebuhr <bniebuhr@efjohnson.com>
Tested-By: default avatarMichael Williamson <michael.williamson@criticallink.com>
Signed-off-by: default avatarSekhar Nori <nsekhar@ti.com>
parent 778e261e
...@@ -299,12 +299,10 @@ static int davinci_spi_setup_transfer(struct spi_device *spi, ...@@ -299,12 +299,10 @@ static int davinci_spi_setup_transfer(struct spi_device *spi,
{ {
struct davinci_spi *davinci_spi; struct davinci_spi *davinci_spi;
struct davinci_spi_platform_data *pdata;
u8 bits_per_word = 0; u8 bits_per_word = 0;
u32 hz = 0, prescale = 0, clkspeed; u32 hz = 0, prescale = 0, clkspeed;
davinci_spi = spi_master_get_devdata(spi->master); davinci_spi = spi_master_get_devdata(spi->master);
pdata = davinci_spi->pdata;
if (t) { if (t) {
bits_per_word = t->bits_per_word; bits_per_word = t->bits_per_word;
...@@ -357,11 +355,9 @@ static void davinci_spi_dma_rx_callback(unsigned lch, u16 ch_status, void *data) ...@@ -357,11 +355,9 @@ static void davinci_spi_dma_rx_callback(unsigned lch, u16 ch_status, void *data)
struct spi_device *spi = (struct spi_device *)data; struct spi_device *spi = (struct spi_device *)data;
struct davinci_spi *davinci_spi; struct davinci_spi *davinci_spi;
struct davinci_spi_dma *davinci_spi_dma; struct davinci_spi_dma *davinci_spi_dma;
struct davinci_spi_platform_data *pdata;
davinci_spi = spi_master_get_devdata(spi->master); davinci_spi = spi_master_get_devdata(spi->master);
davinci_spi_dma = &(davinci_spi->dma_channels[spi->chip_select]); davinci_spi_dma = &(davinci_spi->dma_channels[spi->chip_select]);
pdata = davinci_spi->pdata;
if (ch_status == DMA_COMPLETE) if (ch_status == DMA_COMPLETE)
edma_stop(davinci_spi_dma->dma_rx_channel); edma_stop(davinci_spi_dma->dma_rx_channel);
...@@ -378,11 +374,9 @@ static void davinci_spi_dma_tx_callback(unsigned lch, u16 ch_status, void *data) ...@@ -378,11 +374,9 @@ static void davinci_spi_dma_tx_callback(unsigned lch, u16 ch_status, void *data)
struct spi_device *spi = (struct spi_device *)data; struct spi_device *spi = (struct spi_device *)data;
struct davinci_spi *davinci_spi; struct davinci_spi *davinci_spi;
struct davinci_spi_dma *davinci_spi_dma; struct davinci_spi_dma *davinci_spi_dma;
struct davinci_spi_platform_data *pdata;
davinci_spi = spi_master_get_devdata(spi->master); davinci_spi = spi_master_get_devdata(spi->master);
davinci_spi_dma = &(davinci_spi->dma_channels[spi->chip_select]); davinci_spi_dma = &(davinci_spi->dma_channels[spi->chip_select]);
pdata = davinci_spi->pdata;
if (ch_status == DMA_COMPLETE) if (ch_status == DMA_COMPLETE)
edma_stop(davinci_spi_dma->dma_tx_channel); edma_stop(davinci_spi_dma->dma_tx_channel);
...@@ -398,13 +392,11 @@ static int davinci_spi_request_dma(struct spi_device *spi) ...@@ -398,13 +392,11 @@ static int davinci_spi_request_dma(struct spi_device *spi)
{ {
struct davinci_spi *davinci_spi; struct davinci_spi *davinci_spi;
struct davinci_spi_dma *davinci_spi_dma; struct davinci_spi_dma *davinci_spi_dma;
struct davinci_spi_platform_data *pdata;
struct device *sdev; struct device *sdev;
int r; int r;
davinci_spi = spi_master_get_devdata(spi->master); davinci_spi = spi_master_get_devdata(spi->master);
davinci_spi_dma = &davinci_spi->dma_channels[spi->chip_select]; davinci_spi_dma = &davinci_spi->dma_channels[spi->chip_select];
pdata = davinci_spi->pdata;
sdev = davinci_spi->bitbang.master->dev.parent; sdev = davinci_spi->bitbang.master->dev.parent;
r = edma_alloc_channel(davinci_spi_dma->dma_rx_sync_dev, r = edma_alloc_channel(davinci_spi_dma->dma_rx_sync_dev,
......
Markdown is supported
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