]> git.baikalelectronics.ru Git - kernel.git/commit
platform/x86: mlx-platform: Fix error handling in mlxplat_init()
authorWei Yongjun <weiyongjun1@huawei.com>
Tue, 9 Jul 2019 01:38:42 +0000 (01:38 +0000)
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Fri, 12 Jul 2019 13:00:38 +0000 (16:00 +0300)
commita5ac6b34f05d14c3659a9aae046e65d0d55efdac
tree0c8fc8f7abe0c9b0880f0eb0102d8978fa91d715
parent79cf38da6c4487d86e63cc08577220df30ba913a
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: ca302ca821cc ("platform/x86: mlx-platform: Move regmap initialization before all drivers activation")
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
drivers/platform/x86/mlx-platform.c