platform/x86: think-lmi: Move kobject_init() call into tlmi_create_auth()
authorHans de Goede <hdegoede@redhat.com>
Thu, 18 Nov 2021 11:41:49 +0000 (12:41 +0100)
committerHans de Goede <hdegoede@redhat.com>
Mon, 22 Nov 2021 12:51:15 +0000 (13:51 +0100)
commit01df1385ec4ec699ad6a63007e7f1081089e83a0
tree18c8a34f79b52124288134f14a8cbd806242b042
parent640a5fa50a42b99bfa2a0ec51b4ea9591d9bd055
platform/x86: think-lmi: Move kobject_init() call into tlmi_create_auth()

All callers of tlmi_create_auth() also call
kobject_init(&pwd_setting->kobj, &tlmi_pwd_setting_ktype) on the returned
tlmi_pwd_setting struct. Move this into tlmi_create_auth().

Tested-by: Mark Pearson <markpearson@lenovo.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Link: https://lore.kernel.org/r/20211118114150.271274-1-hdegoede@redhat.com
drivers/platform/x86/think-lmi.c