diff mbox series

[v1,1/2] of: base: Export of_device_compatible_match()

Message ID 20210518001356.19227-2-digetx@gmail.com (mailing list archive)
State Superseded
Headers show
Series Unify NVIDIA Tegra ASoC machine drivers | expand

Commit Message

Dmitry Osipenko May 18, 2021, 12:13 a.m. UTC
The of_device_compatible_match() will be used by the updated NVIDIA Tegra
ASoC WM8903 driver which could be build as a loadable module, export the
OF function.

Signed-off-by: Dmitry Osipenko <digetx@gmail.com>
---
 drivers/of/base.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Rob Herring May 18, 2021, 6:14 p.m. UTC | #1
On Tue, May 18, 2021 at 03:13:55AM +0300, Dmitry Osipenko wrote:
> The of_device_compatible_match() will be used by the updated NVIDIA Tegra
> ASoC WM8903 driver which could be build as a loadable module, export the
> OF function.
> 
> Signed-off-by: Dmitry Osipenko <digetx@gmail.com>
> ---
>  drivers/of/base.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/drivers/of/base.c b/drivers/of/base.c
> index 48e941f99558..eeca92467531 100644
> --- a/drivers/of/base.c
> +++ b/drivers/of/base.c
> @@ -556,6 +556,7 @@ int of_device_compatible_match(struct device_node *device,
>  
>  	return score;
>  }
> +EXPORT_SYMBOL(of_device_compatible_match);

I should document this, but there's a number of of_* functions that have 
only a few users and I want to get rid of. This is one of them. Grep 
this function and you'll notice most should be using 
of_machine_is_compatible instead and we're left with sunxi_mbus...

Rob
diff mbox series

Patch

diff --git a/drivers/of/base.c b/drivers/of/base.c
index 48e941f99558..eeca92467531 100644
--- a/drivers/of/base.c
+++ b/drivers/of/base.c
@@ -556,6 +556,7 @@  int of_device_compatible_match(struct device_node *device,
 
 	return score;
 }
+EXPORT_SYMBOL(of_device_compatible_match);
 
 /**
  * of_machine_is_compatible - Test root of device tree for a given compatible value