aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/of
diff options
context:
space:
mode:
authorMiquel Raynal <miquel.raynal@bootlin.com>2023-06-22 23:32:13 +0200
committerThierry Reding <treding@nvidia.com>2023-07-21 09:07:53 +0200
commit97c23217f1eeff563a3fa5a5bc92a4dc85d17f67 (patch)
tree92f69645e68174351037f92b94bec56ed32ad331 /drivers/of
parent34d7edcf22140d028cb1d9b3d81e1ca9b00a4253 (diff)
downloadlinux-97c23217f1eeff563a3fa5a5bc92a4dc85d17f67.tar.gz
of: module: Export of_device_uevent()
The content of of_device_uevent() is currently hardcoded in a driver that can be compiled as a module. Nothing prevents of_device_uevent() to be exported to modules, most of the other helpers in of/device.c actually are. The reason why this helper was not exported is because it has been so far only useful in drivers/base, which is built-in anyway. With the idea of getting rid of the hardcoded implementation of of_device_uevent() in other places in the kernel, let's export it to GPL modules (very much like its cousins in the same file). Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com> Acked-by: Rob Herring <robh@kernel.org> Signed-off-by: Thierry Reding <treding@nvidia.com> Link: https://patchwork.freedesktop.org/patch/msgid/20230622213214.3586530-2-miquel.raynal@bootlin.com
Diffstat (limited to 'drivers/of')
-rw-r--r--drivers/of/device.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/of/device.c b/drivers/of/device.c
index 0f00f1b807082..90131de6d75bf 100644
--- a/drivers/of/device.c
+++ b/drivers/of/device.c
@@ -312,6 +312,7 @@ void of_device_uevent(const struct device *dev, struct kobj_uevent_env *env)
}
mutex_unlock(&of_mutex);
}
+EXPORT_SYMBOL_GPL(of_device_uevent);
int of_device_uevent_modalias(const struct device *dev, struct kobj_uevent_env *env)
{