* [PATCH] driver core: fix path of /sys/module in comment
@ 2026-06-21 7:52 Zenghui Yu
2026-06-21 19:39 ` Randy Dunlap
0 siblings, 1 reply; 2+ messages 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] 2+ messages in thread* Re: [PATCH] driver core: fix path of /sys/module in comment
2026-06-21 7:52 [PATCH] driver core: fix path of /sys/module in comment Zenghui Yu
@ 2026-06-21 19:39 ` Randy Dunlap
0 siblings, 0 replies; 2+ messages in thread
From: Randy Dunlap @ 2026-06-21 19:39 UTC (permalink / raw)
To: Zenghui Yu, driver-core, linux-kernel; +Cc: gregkh, rafael, dakr
On 6/21/26 12:52 AM, Zenghui Yu wrote:
> 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>
Thanks.
> ---
> 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 */
--
~Randy
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-06-21 19:39 UTC | newest]
Thread overview: 2+ messages (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
2026-06-21 19:39 ` Randy Dunlap
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox