diff options
author | Vladimir Oltean <vladimir.oltean@nxp.com> | 2022-08-18 13:54:57 +0200 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2022-08-23 02:45:47 +0200 |
commit | df55e317805f0ce11c1c4fdb3afa2a42eecca44f (patch) | |
tree | 3f266406f6ea90156fdd884d4e35e9f2ddb65d24 /drivers/of/base.c | |
parent | dt-bindings: net: dsa: make phylink bindings required for CPU/DSA ports (diff) | |
download | linux-df55e317805f0ce11c1c4fdb3afa2a42eecca44f.tar.xz linux-df55e317805f0ce11c1c4fdb3afa2a42eecca44f.zip |
of: base: export of_device_compatible_match() for use in modules
Modules such as net/dsa/dsa_core.ko might want to iterate through an
array of compatible strings for things such as validation (or rather,
skipping it for some potentially broken drivers).
of_device_is_compatible() is exported, by of_device_compatible_match()
isn't. Export the latter as well, so we don't have to open-code the
iteration.
Cc: Frank Rowand <frowand.list@gmail.com>
Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Acked-by: Rob Herring <robh@kernel.org>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'drivers/of/base.c')
-rw-r--r-- | drivers/of/base.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/of/base.c b/drivers/of/base.c index 7fa960bd3df1..42da760e0f45 100644 --- a/drivers/of/base.c +++ b/drivers/of/base.c @@ -578,6 +578,7 @@ int of_device_compatible_match(struct device_node *device, return score; } +EXPORT_SYMBOL_GPL(of_device_compatible_match); /** * of_machine_is_compatible - Test root of device tree for a given compatible value |