]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
platform/x86: x86-android-tablets: Simplify lenovo_yoga_tab2_830_1050_exit()
authorHans de Goede <hansg@kernel.org>
Sat, 20 Sep 2025 20:07:11 +0000 (22:07 +0200)
committerIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Fri, 26 Sep 2025 11:26:40 +0000 (14:26 +0300)
commit6b4bc1451c23f9e41c544c0f6aa8fea048492611
treec7f7262a7d721a1747dff9ff6e4043b59b2d7bfb
parent6564d3e1a46b12990a02dafa948b311a45bc4991
platform/x86: x86-android-tablets: Simplify lenovo_yoga_tab2_830_1050_exit()

lenovo_yoga_tab2_830_1050_exit() only gets called after a successful
lenovo_yoga_tab2_830_1050_init() call so there is no need to check
if lenovo_yoga_tab2_830_1050_codec_[dev|pinctrl] are set.

Also change the exit() order to be the exact reverse of init().

Reviewed-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Reviewed-by: Andy Shevchenko <andy@kernel.org>
Signed-off-by: Hans de Goede <hansg@kernel.org>
Link: https://patch.msgid.link/20250920200713.20193-19-hansg@kernel.org
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
drivers/platform/x86/x86-android-tablets/lenovo.c