aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/of
diff options
context:
space:
mode:
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>2011-12-20 16:56:45 -0500
committerRob Herring <rob.herring@calxeda.com>2011-12-27 11:57:13 -0500
commit7b482c8360d368fd495685a2c69ca4f1e7b29764 (patch)
tree3cd4fc6d7785d3fd0dd21c7d34cdc1731f2ff6c7 /drivers/of
parent88af7f58c6f1fa28d617392c791f11317bcb590d (diff)
ARM/of: allow *machine_desc.dt_compat to be const
This allows dt_compat to point to a constant list of compatible strings. Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: Rob Herring <rob.herring@calxeda.com>
Diffstat (limited to 'drivers/of')
-rw-r--r--drivers/of/fdt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/of/fdt.c b/drivers/of/fdt.c
index fd85fa298e0f..7dc8e6da858d 100644
--- a/drivers/of/fdt.c
+++ b/drivers/of/fdt.c
@@ -107,7 +107,7 @@ int of_fdt_is_compatible(struct boot_param_header *blob,
107 * of_fdt_match - Return true if node matches a list of compatible values 107 * of_fdt_match - Return true if node matches a list of compatible values
108 */ 108 */
109int of_fdt_match(struct boot_param_header *blob, unsigned long node, 109int of_fdt_match(struct boot_param_header *blob, unsigned long node,
110 const char **compat) 110 const char *const *compat)
111{ 111{
112 unsigned int tmp, score = 0; 112 unsigned int tmp, score = 0;
113 113
@@ -541,7 +541,7 @@ int __init of_flat_dt_is_compatible(unsigned long node, const char *compat)
541/** 541/**
542 * of_flat_dt_match - Return true if node matches a list of compatible values 542 * of_flat_dt_match - Return true if node matches a list of compatible values
543 */ 543 */
544int __init of_flat_dt_match(unsigned long node, const char **compat) 544int __init of_flat_dt_match(unsigned long node, const char *const *compat)
545{ 545{
546 return of_fdt_match(initial_boot_params, node, compat); 546 return of_fdt_match(initial_boot_params, node, compat);
547} 547}