提交 e6fbb97d 编写于 作者: W Wei Yongjun 提交者: Andy Shevchenko

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: NWei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: NAndy Shevchenko <andriy.shevchenko@linux.intel.com>
上级 b02f6a2e
......@@ -2111,7 +2111,7 @@ static int __init mlxplat_init(void)
mlxplat_regmap_config);
if (IS_ERR(priv->regmap)) {
err = PTR_ERR(priv->regmap);
return err;
goto fail_alloc;
}
err = mlxplat_mlxcpld_verify_bus_topology(&nr);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册