Skip to content
Commit e6fbb97d authored by Wei Yongjun's avatar Wei Yongjun Committed by Andy Shevchenko
Browse files

platform/x86: mlx-platform: Fix error handling in mlxplat_init()



Add the missing platform_device_unregister() before return
from mlxplat_init() in the error handling case.

Fixes: 6b266e91 ("platform/x86: mlx-platform: Move regmap initialization before all drivers activation")
Signed-off-by: default avatarWei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
parent b02f6a2e
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment