summaryrefslogtreecommitdiff
path: root/drivers/platform
diff options
context:
space:
mode:
authorBarnabás Pőcze <pobrn@protonmail.com>2021-02-04 00:54:43 +0300
committerHans de Goede <hdegoede@redhat.com>2021-02-04 12:20:27 +0300
commitcaa315b8de372890aedfa612b91e649168a31187 (patch)
treefa7b1dbfdb2fbd8c7fc20321c91113f8c2cc4ada /drivers/platform
parent7d38f034e7b2d6eae3b0e29efb3fd968d156a797 (diff)
downloadlinux-caa315b8de372890aedfa612b91e649168a31187.tar.xz
platform/x86: ideapad-laptop: add missing call to submodule destructor
ideapad_dytc_profile_exit() is not called in ideapad_acpi_add() in the error path. Add the missing call. Signed-off-by: Barnabás Pőcze <pobrn@protonmail.com> Link: https://lore.kernel.org/r/20210203215403.290792-6-pobrn@protonmail.com Reviewed-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Diffstat (limited to 'drivers/platform')
-rw-r--r--drivers/platform/x86/ideapad-laptop.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/platform/x86/ideapad-laptop.c b/drivers/platform/x86/ideapad-laptop.c
index e3016c18e88e..7ee5ac662f80 100644
--- a/drivers/platform/x86/ideapad-laptop.c
+++ b/drivers/platform/x86/ideapad-laptop.c
@@ -1337,6 +1337,7 @@ notification_failed_wmi:
notification_failed:
ideapad_backlight_exit(priv);
backlight_failed:
+ ideapad_dytc_profile_exit(priv);
for (i = 0; i < IDEAPAD_RFKILL_DEV_NUM; i++)
ideapad_unregister_rfkill(priv, i);
ideapad_input_exit(priv);