platform/x86: mlx-platform: Fix copy-paste error in mlxplat_init()
authorWei Yongjun <weiyongjun1@huawei.com>
Wed, 8 Aug 2018 04:00:30 +0000 (04:00 +0000)
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Wed, 15 Aug 2018 09:55:32 +0000 (12:55 +0300)
commit207da7128a6d61a1ce3d052b3dfb10d237af6078
tree8e41ac7ad88d8f0d971b854d6d33c971bcf03905
parent0b4e30f49aa44725cbaefa6e839bd82a768c385a
platform/x86: mlx-platform: Fix copy-paste error in mlxplat_init()

The return value from platform_device_register_resndata() is not checked
correctly. The test is done against a wrong variable. This patch fix it.

Fixes: 0378123c5800 ("platform/x86: mlx-platform: Add mlxreg-fan platform driver activation")
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Acked-by: Vadim Pasternak <vadimp@mellanox.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
drivers/platform/x86/mlx-platform.c