Skip to content

Commit 1d9e882

Browse files
sicceggegregkh
authored andcommitted
driver-core: fix Typo in drivers/base/core.c for CONFIG_MODULE
In this code section the final S of CONFIG_MODULES was missed making the whole check useless Signed-off-by: Christoph Egger <[email protected]> Cc: Mark McLoughlin <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent de139a3 commit 1d9e882

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/base/core.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1420,7 +1420,7 @@ struct device *__root_device_register(const char *name, struct module *owner)
14201420
return ERR_PTR(err);
14211421
}
14221422

1423-
#ifdef CONFIG_MODULE /* gotta find a "cleaner" way to do this */
1423+
#ifdef CONFIG_MODULES /* gotta find a "cleaner" way to do this */
14241424
if (owner) {
14251425
struct module_kobject *mk = &owner->mkobj;
14261426

0 commit comments

Comments
 (0)