aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/base
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/base')
-rw-r--r--drivers/base/core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/base/core.c b/drivers/base/core.c
index 17e7d5048b83..9630fbdf4e6c 100644
--- a/drivers/base/core.c
+++ b/drivers/base/core.c
@@ -1420,7 +1420,7 @@ struct device *__root_device_register(const char *name, struct module *owner)
1420 return ERR_PTR(err); 1420 return ERR_PTR(err);
1421 } 1421 }
1422 1422
1423#ifdef CONFIG_MODULE /* gotta find a "cleaner" way to do this */ 1423#ifdef CONFIG_MODULES /* gotta find a "cleaner" way to do this */
1424 if (owner) { 1424 if (owner) {
1425 struct module_kobject *mk = &owner->mkobj; 1425 struct module_kobject *mk = &owner->mkobj;
1426 1426