summaryrefslogtreecommitdiffstats
path: root/arch/arm/mm/cache-l2x0.c
diff options
context:
space:
mode:
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>2012-05-21 21:54:06 +0200
committerUwe Kleine-König <u.kleine-koenig@pengutronix.de>2012-09-11 08:56:37 +0200
commite5b5d0209f0d01cdb11ab7f7af4ab9f48d0b3031 (patch)
treec5136f09bff4fb27d24d71184134178ff8f0a2a0 /arch/arm/mm/cache-l2x0.c
parent76d28e441ee967f49ec36f34664d54118c438ecd (diff)
downloadblackbird-op-linux-e5b5d0209f0d01cdb11ab7f7af4ab9f48d0b3031.tar.gz
blackbird-op-linux-e5b5d0209f0d01cdb11ab7f7af4ab9f48d0b3031.zip
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 <u.kleine-koenig@pengutronix.de>
Diffstat (limited to 'arch/arm/mm/cache-l2x0.c')
-rw-r--r--arch/arm/mm/cache-l2x0.c2
1 files changed, 1 insertions, 1 deletions
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);
OpenPOWER on IntegriCloud