Skip to content

Commit 0f7c531

Browse files
ffainellikuba-moo
authored andcommitted
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>
1 parent 447a851 commit 0f7c531

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

drivers/of/base.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1869,6 +1869,7 @@ int of_remove_property(struct device_node *np, struct property *prop)
18691869

18701870
return rc;
18711871
}
1872+
EXPORT_SYMBOL_GPL(of_remove_property);
18721873

18731874
int __of_update_property(struct device_node *np, struct property *newprop,
18741875
struct property **oldpropp)

include/linux/of.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -929,6 +929,11 @@ static inline int of_machine_is_compatible(const char *compat)
929929
return 0;
930930
}
931931

932+
static inline int of_remove_property(struct device_node *np, struct property *prop)
933+
{
934+
return 0;
935+
}
936+
932937
static inline bool of_console_check(const struct device_node *dn, const char *name, int index)
933938
{
934939
return false;

0 commit comments

Comments
 (0)