]> git.ipfire.org Git - thirdparty/linux.git/commit
platform/x86: mlx-platform: Add hotplug device unregister to error path
authorVadim Pasternak <vadimp@mellanox.com>
Wed, 31 Jan 2018 21:55:13 +0000 (21:55 +0000)
committerDarren Hart (VMware) <dvhart@infradead.org>
Wed, 31 Jan 2018 20:54:56 +0000 (12:54 -0800)
commit4726098bcc4cf033dd57b6310de46ef3692debf5
treeb831edb83e7bf88206d22ae3556c18b75c260c1f
parent580d834fe166c695f37c942e9cd92d1743bdc5d4
platform/x86: mlx-platform: Add hotplug device unregister to error path

Add hotplug platform driver un-registration in case regmap cache
synchronization failed. In such case hotplug platform driver
registration should be rolled back.

Signed-off-by: Vadim Pasternak <vadimp@mellanox.com>
Signed-off-by: Darren Hart (VMware) <dvhart@infradead.org>
drivers/platform/x86/mlx-platform.c