* [PATCH] driver core: fix path of /sys/module in comment
@ 2026-06-21 7:52 Zenghui Yu
0 siblings, 0 replies; only message in thread
From: Zenghui Yu @ 2026-06-21 7:52 UTC (permalink / raw)
To: driver-core, linux-kernel; +Cc: gregkh, rafael, dakr, rdunlap, Zenghui Yu
The comment wrongly references to /sys/modules directory instead of
/sys/module. Fix it.
Signed-off-by: Zenghui Yu <zenghui.yu@linux.dev>
---
drivers/base/module.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/base/module.c b/drivers/base/module.c
index 218aaa096455..6789dca485ab 100644
--- a/drivers/base/module.c
+++ b/drivers/base/module.c
@@ -42,7 +42,7 @@ int module_add_driver(struct module *mod, const struct device_driver *drv)
if (mod)
mk = &mod->mkobj;
else if (drv->mod_name) {
- /* Lookup or create built-in module entry in /sys/modules */
+ /* Lookup or create built-in module entry in /sys/module */
mk = lookup_or_create_module_kobject(drv->mod_name);
if (mk) {
/* remember our module structure */
--
2.53.0
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-06-21 7:53 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-06-21 7:52 [PATCH] driver core: fix path of /sys/module in comment Zenghui Yu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox