spi: tegra: fix sectionmismatch for spi_tegra_init_dma_param
Peter De Schrijver [Thu, 19 Jul 2012 12:52:30 +0000 (15:52 +0300)]
spi_tegra_init_dma_param is only called from spi_tegra_probe which is in the
__devinit section. Hence the easiest solution is to make spi_tegra_probe also
part of that section.

Change-Id: Ifce7799fdeb2dee6e5854740d3097e09d0bc2f69
Signed-off-by: Peter De Schrijver <pdeschrijver@nvidia.com>
Reviewed-on: http://git-master/r/117057
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

drivers/spi/spi-tegra.c

index 94921b5..5568cc7 100644 (file)
@@ -1281,7 +1281,7 @@ static void spi_tegra_deinit_dma_param(struct spi_tegra_data *tspi,
        tegra_dma_free_channel(tdc);
 }
 
-static int __init spi_tegra_init_dma_param(struct spi_tegra_data *tspi,
+static int __devinit spi_tegra_init_dma_param(struct spi_tegra_data *tspi,
                        bool dma_to_memory)
 {
        struct tegra_dma_req *dma_req;