]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
HID: mcp-2221: cancel delayed_work only when CONFIG_IIO is enabled
authorAbdelrahman Morsy <abdelrahmanhesham94@gmail.com>
Tue, 2 Apr 2024 12:14:06 +0000 (14:14 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 30 May 2024 07:48:46 +0000 (09:48 +0200)
commit5abbc2b34394da6df4fe8036736f367e8a8839aa
treefb289547e1ed770e4b3c87d5fcc9376aad872fb0
parent17e40a5f291eb92979f104e52f874a67daefc08a
HID: mcp-2221: cancel delayed_work only when CONFIG_IIO is enabled

[ Upstream commit 3cba9cfcc1520a2307a29f6fab887bcfc121c417 ]

If the device is unplugged and CONFIG_IIO is not supported, this will
result in a warning message at kernel/workqueue.

Only cancel delayed work in mcp2221_remove(), when CONFIG_IIO is enabled.

Signed-off-by: Abdelrahman Morsy <abdelrahmanhesham94@gmail.com>
Signed-off-by: Jiri Kosina <jkosina@suse.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/hid/hid-mcp2221.c