Commit e5b5d020 authored by Uwe Kleine-König's avatar Uwe Kleine-König

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: default avatarUwe Kleine-König <u.kleine-koenig@pengutronix.de>
parent 76d28e44
...@@ -554,7 +554,7 @@ static const struct of_device_id l2x0_ids[] __initconst = { ...@@ -554,7 +554,7 @@ static const struct of_device_id l2x0_ids[] __initconst = {
int __init l2x0_of_init(u32 aux_val, u32 aux_mask) int __init l2x0_of_init(u32 aux_val, u32 aux_mask)
{ {
struct device_node *np; struct device_node *np;
struct l2x0_of_data *data; const struct l2x0_of_data *data;
struct resource res; struct resource res;
np = of_find_matching_node(NULL, l2x0_ids); np = of_find_matching_node(NULL, l2x0_ids);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment