Skip to content
/ linux Public
forked from torvalds/linux

Commit

Permalink
of: Export of_remove_property() to modules
Browse files Browse the repository at this point in the history
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 <[email protected]>
Acked-by: Rob Herring <[email protected]>
Signed-off-by: Jakub Kicinski <[email protected]>
  • Loading branch information
ffainelli authored and kuba-moo committed Sep 5, 2020
1 parent 447a851 commit 0f7c531
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions drivers/of/base.c
Original file line number Diff line number Diff line change
Expand Up @@ -1869,6 +1869,7 @@ int of_remove_property(struct device_node *np, struct property *prop)

return rc;
}
EXPORT_SYMBOL_GPL(of_remove_property);

int __of_update_property(struct device_node *np, struct property *newprop,
struct property **oldpropp)
Expand Down
5 changes: 5 additions & 0 deletions include/linux/of.h
Original file line number Diff line number Diff line change
Expand Up @@ -929,6 +929,11 @@ static inline int of_machine_is_compatible(const char *compat)
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)
{
return false;
Expand Down

0 comments on commit 0f7c531

Please sign in to comment.