Re: [PATCH] driver core: fix path of /sys/module in comment

From: Randy Dunlap

Date: Sun Jun 21 2026 - 15:39:43 EST




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@xxxxxxxxx>

Acked-by: Randy Dunlap <rdunlap@xxxxxxxxxxxxx>
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