mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
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 <[email protected]> Signed-off-by: Rob Herring <[email protected]>
This commit is contained in:
parent
88af7f58c6
commit
7b482c8360
3 changed files with 5 additions and 5 deletions
|
|
@ -107,7 +107,7 @@ int of_fdt_is_compatible(struct boot_param_header *blob,
|
|||
* of_fdt_match - Return true if node matches a list of compatible values
|
||||
*/
|
||||
int of_fdt_match(struct boot_param_header *blob, unsigned long node,
|
||||
const char **compat)
|
||||
const char *const *compat)
|
||||
{
|
||||
unsigned int tmp, score = 0;
|
||||
|
||||
|
|
@ -541,7 +541,7 @@ int __init of_flat_dt_is_compatible(unsigned long node, const char *compat)
|
|||
/**
|
||||
* of_flat_dt_match - Return true if node matches a list of compatible values
|
||||
*/
|
||||
int __init of_flat_dt_match(unsigned long node, const char **compat)
|
||||
int __init of_flat_dt_match(unsigned long node, const char *const *compat)
|
||||
{
|
||||
return of_fdt_match(initial_boot_params, node, compat);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue