aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/base/firmware.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--drivers/base/firmware.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/base/firmware.c b/drivers/base/firmware.c
index 90c862932169..336be0450d54 100644
--- a/drivers/base/firmware.c
+++ b/drivers/base/firmware.c
@@ -15,11 +15,12 @@
#include "base.h"
-static decl_subsys(firmware, NULL, NULL);
+static decl_subsys(firmware, NULL);
int firmware_register(struct kset *s)
{
- kobj_set_kset_s(s, firmware_subsys);
+ s->kobj.kset = &firmware_subsys;
+ s->kobj.ktype = NULL;
return subsystem_register(s);
}