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 <siccegge@cs.fau.de> Cc: Mark McLoughlin <markmc@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
parent
de139a3393
commit
1d9e882ba4
1 changed files with 1 additions and 1 deletions
|
@ -1420,7 +1420,7 @@ struct device *__root_device_register(const char *name, struct module *owner)
|
|||
return ERR_PTR(err);
|
||||
}
|
||||
|
||||
#ifdef CONFIG_MODULE /* gotta find a "cleaner" way to do this */
|
||||
#ifdef CONFIG_MODULES /* gotta find a "cleaner" way to do this */
|
||||
if (owner) {
|
||||
struct module_kobject *mk = &owner->mkobj;
|
||||
|
||||
|
|
Loading…
Reference in a new issue