Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);