aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/dma
diff options
context:
space:
mode:
authorRussell King - ARM Linux <linux@arm.linux.org.uk>2011-01-03 17:35:08 -0500
committerDan Williams <dan.j.williams@intel.com>2011-01-04 22:16:11 -0500
commitf96ca9ec27159c1c8718aa8d0ed03051cd12e884 (patch)
tree38ef312ac8654ab5cf2c19ed258836e1153a6bab /drivers/dma
parentb58b6b5bedf4d5da7a0cb2dce3b42d010c3aef03 (diff)
ARM: PL08x: constify vendor data pointers
We should never modify the vendor data structure so make it const. Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk> Acked-by: Linus Walleij <linus.walleij@stericsson.com> Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'drivers/dma')
-rw-r--r--drivers/dma/amba-pl08x.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/dma/amba-pl08x.c b/drivers/dma/amba-pl08x.c
index 74b35910f295..707fa081c9fa 100644
--- a/drivers/dma/amba-pl08x.c
+++ b/drivers/dma/amba-pl08x.c
@@ -132,7 +132,7 @@ struct pl08x_driver_data {
132 struct dma_device memcpy; 132 struct dma_device memcpy;
133 void __iomem *base; 133 void __iomem *base;
134 struct amba_device *adev; 134 struct amba_device *adev;
135 struct vendor_data *vd; 135 const struct vendor_data *vd;
136 struct pl08x_platform_data *pd; 136 struct pl08x_platform_data *pd;
137 struct pl08x_phy_chan *phy_chans; 137 struct pl08x_phy_chan *phy_chans;
138 struct dma_pool *pool; 138 struct dma_pool *pool;
@@ -1891,7 +1891,7 @@ static inline void init_pl08x_debugfs(struct pl08x_driver_data *pl08x)
1891static int pl08x_probe(struct amba_device *adev, struct amba_id *id) 1891static int pl08x_probe(struct amba_device *adev, struct amba_id *id)
1892{ 1892{
1893 struct pl08x_driver_data *pl08x; 1893 struct pl08x_driver_data *pl08x;
1894 struct vendor_data *vd = id->data; 1894 const struct vendor_data *vd = id->data;
1895 int ret = 0; 1895 int ret = 0;
1896 int i; 1896 int i;
1897 1897