Skip to content

Commit 97c2321

Browse files
miquelraynalthierryreding
authored andcommitted
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 <[email protected]> Acked-by: Rob Herring <[email protected]> Signed-off-by: Thierry Reding <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
1 parent 34d7edc commit 97c2321

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/of/device.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -312,6 +312,7 @@ void of_device_uevent(const struct device *dev, struct kobj_uevent_env *env)
312312
}
313313
mutex_unlock(&of_mutex);
314314
}
315+
EXPORT_SYMBOL_GPL(of_device_uevent);
315316

316317
int of_device_uevent_modalias(const struct device *dev, struct kobj_uevent_env *env)
317318
{

0 commit comments

Comments
 (0)