dma: tegra: make tegra_dma.chip_data a pointer to const data
authorLaxman Dewangan <[email protected]>
Wed, 29 Aug 2012 08:23:07 +0000 (10:23 +0200)
committerUwe Kleine-König <[email protected]>
Tue, 11 Sep 2012 06:57:26 +0000 (08:57 +0200)
This prepares *of_device_id.data becoming const. Without this change
the following warning would occur:

drivers/dma/tegra20-apb-dma.c: In function 'tegra_dma_probe':
drivers/dma/tegra20-apb-dma.c:1210:9: warning: assignment discards 'const' qualifier from pointer target type [enabled by default]

[ukl: split Laxman's patch to prevent warnings in the middle of the
series. Original patch was sent with msgid
1346217447[email protected]]

Signed-off-by: Laxman Dewangan <[email protected]>
Acked-by: Stephen Warren <[email protected]>
Acked-by: Vinod Koul <[email protected]>
Signed-off-by: Uwe Kleine-König <[email protected]>
drivers/dma/tegra20-apb-dma.c

index d52dbc6c54abdb346278b65bfbd8715f317d3e58..29a39b88cdfd4eebeaa4edf51288e07c8f5efa53 100644 (file)
@@ -201,7 +201,7 @@ struct tegra_dma {
        struct clk                      *dma_clk;
        spinlock_t                      global_lock;
        void __iomem                    *base_addr;
-       struct tegra_dma_chip_data      *chip_data;
+       const struct tegra_dma_chip_data *chip_data;
 
        /* Some register need to be cache before suspend */
        u32                             reg_gen;
@@ -1197,7 +1197,7 @@ static int __devinit tegra_dma_probe(struct platform_device *pdev)
        struct tegra_dma *tdma;
        int ret;
        int i;
-       struct tegra_dma_chip_data *cdata = NULL;
+       const struct tegra_dma_chip_data *cdata = NULL;
 
        if (pdev->dev.of_node) {
                const struct of_device_id *match;