driver core: fix path of /sys/module in comment

The comment wrongly references to /sys/modules directory instead of
/sys/module. Fix it.

Signed-off-by: Zenghui Yu <zenghui.yu@linux.dev>
Acked-by: Randy Dunlap <rdunlap@infradead.org>
Link: https://patch.msgid.link/20260621075239.11330-1-zenghui.yu@linux.dev
Signed-off-by: Danilo Krummrich <dakr@kernel.org>
This commit is contained in:
Zenghui Yu
2026-06-21 15:52:39 +08:00
committed by Danilo Krummrich
parent f81808de37
commit e7e09a8546

View File

@@ -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 */