]> git.itanic.dy.fi Git - linux-stable/commit
platform/x86: wmi: Fix wmi_dev_probe()
authorDan Carpenter <dan.carpenter@linaro.org>
Fri, 5 Jan 2024 13:47:54 +0000 (16:47 +0300)
committerHans de Goede <hdegoede@redhat.com>
Mon, 22 Jan 2024 10:37:27 +0000 (11:37 +0100)
commit8446f9d11678bc268897882e86733d73204f83c4
tree5e2f0253e8bc8a88a6341441a9058867a6a73090
parent29e473f4b51ee56b5808323e274a8369b4d181cb
platform/x86: wmi: Fix wmi_dev_probe()

This has a reversed if statement so it accidentally disables the wmi
method before returning.

Fixes: 704af3a40747 ("platform/x86: wmi: Remove chardev interface")
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Reviewed-by: Armin Wolf <W_Armin@gmx.de>
Link: https://lore.kernel.org/r/9c81251b-bc87-4ca3-bb86-843dc85e5145@moroto.mountain
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
drivers/platform/x86/wmi.c