From: Russell King - ARM Linux Date: Mon, 3 Jan 2011 22:35:08 +0000 (+0000) Subject: ARM: PL08x: constify vendor data pointers X-Git-Tag: v2.6.38-rc1~25^2~11^2~33 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f96ca9ec27159c1c8718aa8d0ed03051cd12e884;p=profile%2Fivi%2Fkernel-x86-ivi.git ARM: PL08x: constify vendor data pointers We should never modify the vendor data structure so make it const. Signed-off-by: Russell King Acked-by: Linus Walleij Signed-off-by: Dan Williams --- diff --git a/drivers/dma/amba-pl08x.c b/drivers/dma/amba-pl08x.c index 74b3591..707fa08 100644 --- a/drivers/dma/amba-pl08x.c +++ b/drivers/dma/amba-pl08x.c @@ -132,7 +132,7 @@ struct pl08x_driver_data { struct dma_device memcpy; void __iomem *base; struct amba_device *adev; - struct vendor_data *vd; + const struct vendor_data *vd; struct pl08x_platform_data *pd; struct pl08x_phy_chan *phy_chans; struct dma_pool *pool; @@ -1891,7 +1891,7 @@ static inline void init_pl08x_debugfs(struct pl08x_driver_data *pl08x) static int pl08x_probe(struct amba_device *adev, struct amba_id *id) { struct pl08x_driver_data *pl08x; - struct vendor_data *vd = id->data; + const struct vendor_data *vd = id->data; int ret = 0; int i;