From: Uwe Kleine-König Date: Mon, 21 May 2012 19:54:06 +0000 (+0200) Subject: ARM: cache-l2x0: add a const qualifier X-Git-Tag: next-20120725~11^2^2^2~20 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=55b909abe81e65bafc9f536905e1d75974465994;p=karo-tx-linux.git ARM: cache-l2x0: add a const qualifier This prepares *of_device_id.data becoming const. Without this change the following warning would occur: arch/arm/mm/cache-l2x0.c: In function 'l2x0_of_init': arch/arm/mm/cache-l2x0.c:573:7: warning: assignment discards 'const' qualifier from pointer target type [enabled by default] though. Signed-off-by: Uwe Kleine-König --- diff --git a/arch/arm/mm/cache-l2x0.c b/arch/arm/mm/cache-l2x0.c index 2a8e380501e8..577baf7d0a8d 100644 --- a/arch/arm/mm/cache-l2x0.c +++ b/arch/arm/mm/cache-l2x0.c @@ -554,7 +554,7 @@ static const struct of_device_id l2x0_ids[] __initconst = { int __init l2x0_of_init(u32 aux_val, u32 aux_mask) { struct device_node *np; - struct l2x0_of_data *data; + const struct l2x0_of_data *data; struct resource res; np = of_find_matching_node(NULL, l2x0_ids);