Loading drivers/spi/omap2_mcspi.c +11 −8 Original line number Diff line number Diff line Loading @@ -834,7 +834,6 @@ static void omap2_mcspi_cleanup(struct spi_device *spi) struct omap2_mcspi_cs *cs; mcspi = spi_master_get_devdata(spi->master); mcspi_dma = &mcspi->dma_channels[spi->chip_select]; if (spi->controller_state) { /* Unlink controller state from context save list */ Loading @@ -844,6 +843,9 @@ static void omap2_mcspi_cleanup(struct spi_device *spi) kfree(spi->controller_state); } if (spi->chip_select < spi->master->num_chipselect) { mcspi_dma = &mcspi->dma_channels[spi->chip_select]; if (mcspi_dma->dma_rx_channel != -1) { omap_free_dma(mcspi_dma->dma_rx_channel); mcspi_dma->dma_rx_channel = -1; Loading @@ -853,6 +855,7 @@ static void omap2_mcspi_cleanup(struct spi_device *spi) mcspi_dma->dma_tx_channel = -1; } } } static void omap2_mcspi_work(struct work_struct *work) { Loading Loading
drivers/spi/omap2_mcspi.c +11 −8 Original line number Diff line number Diff line Loading @@ -834,7 +834,6 @@ static void omap2_mcspi_cleanup(struct spi_device *spi) struct omap2_mcspi_cs *cs; mcspi = spi_master_get_devdata(spi->master); mcspi_dma = &mcspi->dma_channels[spi->chip_select]; if (spi->controller_state) { /* Unlink controller state from context save list */ Loading @@ -844,6 +843,9 @@ static void omap2_mcspi_cleanup(struct spi_device *spi) kfree(spi->controller_state); } if (spi->chip_select < spi->master->num_chipselect) { mcspi_dma = &mcspi->dma_channels[spi->chip_select]; if (mcspi_dma->dma_rx_channel != -1) { omap_free_dma(mcspi_dma->dma_rx_channel); mcspi_dma->dma_rx_channel = -1; Loading @@ -853,6 +855,7 @@ static void omap2_mcspi_cleanup(struct spi_device *spi) mcspi_dma->dma_tx_channel = -1; } } } static void omap2_mcspi_work(struct work_struct *work) { Loading