aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/dma/tegra20-apb-dma.c
diff options
context:
space:
mode:
authorLaxman Dewangan <ldewangan@nvidia.com>2012-08-29 04:23:07 -0400
committerUwe Kleine-König <u.kleine-koenig@pengutronix.de>2012-09-11 02:57:26 -0400
commit83a1ef2eb68cffda5940568b8c3f48daa5ab9d0c (patch)
treeb0be77adecdbdd85f5c040d52c4b5293eca42250 /drivers/dma/tegra20-apb-dma.c
parent639397e48684b75c3476138ab1bfa5a67d6c2048 (diff)
dma: tegra: make tegra_dma.chip_data a pointer to const data
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-19730-1-git-send-email-ldewangan@nvidia.com] Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com> Acked-by: Stephen Warren <swarren@wwwdotorg.org> Acked-by: Vinod Koul <vinod.koul@linux.intel.com> Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Diffstat (limited to 'drivers/dma/tegra20-apb-dma.c')
-rw-r--r--drivers/dma/tegra20-apb-dma.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/dma/tegra20-apb-dma.c b/drivers/dma/tegra20-apb-dma.c
index d52dbc6c54ab..29a39b88cdfd 100644
--- a/drivers/dma/tegra20-apb-dma.c
+++ b/drivers/dma/tegra20-apb-dma.c
@@ -201,7 +201,7 @@ struct tegra_dma {
201 struct clk *dma_clk; 201 struct clk *dma_clk;
202 spinlock_t global_lock; 202 spinlock_t global_lock;
203 void __iomem *base_addr; 203 void __iomem *base_addr;
204 struct tegra_dma_chip_data *chip_data; 204 const struct tegra_dma_chip_data *chip_data;
205 205
206 /* Some register need to be cache before suspend */ 206 /* Some register need to be cache before suspend */
207 u32 reg_gen; 207 u32 reg_gen;
@@ -1197,7 +1197,7 @@ static int __devinit tegra_dma_probe(struct platform_device *pdev)
1197 struct tegra_dma *tdma; 1197 struct tegra_dma *tdma;
1198 int ret; 1198 int ret;
1199 int i; 1199 int i;
1200 struct tegra_dma_chip_data *cdata = NULL; 1200 const struct tegra_dma_chip_data *cdata = NULL;
1201 1201
1202 if (pdev->dev.of_node) { 1202 if (pdev->dev.of_node) {
1203 const struct of_device_id *match; 1203 const struct of_device_id *match;