platform: mellanox: Fix order in exit flow
authorVadim Pasternak <vadimp@nvidia.com>
Sun, 13 Aug 2023 08:37:32 +0000 (08:37 +0000)
committerHans de Goede <hdegoede@redhat.com>
Sun, 13 Aug 2023 12:49:46 +0000 (14:49 +0200)
commit8e3938cff0191c810b2abd827313c090fe09d166
treefbb47e98f2c5ace4485ab7cb7bbaba4f70e32821
parentaf8a6d281bfb68023fb60f616ec87fe8a875875e
platform: mellanox: Fix order in exit flow

Fix exit flow order: call mlxplat_post_exit() after
mlxplat_i2c_main_exit() in order to unregister main i2c driver before
to "mlxplat" driver.

Fixes: 0170f616f496 ("platform: mellanox: Split initialization procedure")
Signed-off-by: Vadim Pasternak <vadimp@nvidia.com>
Reviewed-by: Michael Shych <michaelsh@nvidia.com>
Link: https://lore.kernel.org/r/20230813083735.39090-2-vadimp@nvidia.com
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
drivers/platform/x86/mlx-platform.c