mirror of https://gitee.com/openkylin/linux.git
of: Export of_remove_property() to modules
We will need to remove some OF properties in drivers/net/dsa/bcm_sf2.c with a subsequent commit. Export of_remove_property() to modules so we can keep bcm_sf2 modular and provide an empty stub for when CONFIG_OF is disabled to maintain the ability to compile test. Signed-off-by: Florian Fainelli <f.fainelli@gmail.com> Acked-by: Rob Herring <robh@kernel.org> Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
parent
447a851bdb
commit
0f7c5317b8
|
@ -1869,6 +1869,7 @@ int of_remove_property(struct device_node *np, struct property *prop)
|
||||||
|
|
||||||
return rc;
|
return rc;
|
||||||
}
|
}
|
||||||
|
EXPORT_SYMBOL_GPL(of_remove_property);
|
||||||
|
|
||||||
int __of_update_property(struct device_node *np, struct property *newprop,
|
int __of_update_property(struct device_node *np, struct property *newprop,
|
||||||
struct property **oldpropp)
|
struct property **oldpropp)
|
||||||
|
|
|
@ -929,6 +929,11 @@ static inline int of_machine_is_compatible(const char *compat)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static inline int of_remove_property(struct device_node *np, struct property *prop)
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
static inline bool of_console_check(const struct device_node *dn, const char *name, int index)
|
static inline bool of_console_check(const struct device_node *dn, const char *name, int index)
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in New Issue