aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/dma/tegra20-apb-dma.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/dma/tegra20-apb-dma.c')
-rw-r--r--drivers/dma/tegra20-apb-dma.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/dma/tegra20-apb-dma.c b/drivers/dma/tegra20-apb-dma.c
index 24acd711e032..4708467e4d83 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;
@@ -1173,14 +1173,14 @@ static void tegra_dma_free_chan_resources(struct dma_chan *dc)
1173} 1173}
1174 1174
1175/* Tegra20 specific DMA controller information */ 1175/* Tegra20 specific DMA controller information */
1176static struct tegra_dma_chip_data tegra20_dma_chip_data = { 1176static const struct tegra_dma_chip_data tegra20_dma_chip_data = {
1177 .nr_channels = 16, 1177 .nr_channels = 16,
1178 .max_dma_count = 1024UL * 64, 1178 .max_dma_count = 1024UL * 64,
1179}; 1179};
1180 1180
1181#if defined(CONFIG_OF) 1181#if defined(CONFIG_OF)
1182/* Tegra30 specific DMA controller information */ 1182/* Tegra30 specific DMA controller information */
1183static struct tegra_dma_chip_data tegra30_dma_chip_data = { 1183static const struct tegra_dma_chip_data tegra30_dma_chip_data = {
1184 .nr_channels = 32, 1184 .nr_channels = 32,
1185 .max_dma_count = 1024UL * 64, 1185 .max_dma_count = 1024UL * 64,
1186}; 1186};
@@ -1204,7 +1204,7 @@ static int __devinit tegra_dma_probe(struct platform_device *pdev)
1204 struct tegra_dma *tdma; 1204 struct tegra_dma *tdma;
1205 int ret; 1205 int ret;
1206 int i; 1206 int i;
1207 struct tegra_dma_chip_data *cdata = NULL; 1207 const struct tegra_dma_chip_data *cdata = NULL;
1208 1208
1209 if (pdev->dev.of_node) { 1209 if (pdev->dev.of_node) {
1210 const struct of_device_id *match; 1210 const struct of_device_id *match;