platform/x86: dell-smbios-base: Fix error return code in dell_smbios_init
authorQinglang Miao <miaoqinglang@huawei.com>
Wed, 25 Nov 2020 06:50:32 +0000 (14:50 +0800)
committerHans de Goede <hdegoede@redhat.com>
Wed, 2 Dec 2020 12:11:03 +0000 (13:11 +0100)
commit2425ccd30fd78ce35237350fe8baac31dc18bd45
tree167b92ce30909102a935874c36dfc6ab00aae346
parentfe6000990394639ed374cb76c313be3640714f47
platform/x86: dell-smbios-base: Fix error return code in dell_smbios_init

Fix to return the error code -ENODEV when fails to init wmi and
smm.

Fixes: 41e36f2f85af ("platform/x86: dell-smbios: Link all dell-smbios-* modules together")
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Qinglang Miao <miaoqinglang@huawei.com>
Reviewed-by: Mario Limonciello <mario.limonciello@dell.com>
Link: https://lore.kernel.org/r/20201125065032.154125-1-miaoqinglang@huawei.com
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
drivers/platform/x86/dell-smbios-base.c