Skip to content
Commit 3cba9cfc authored by Abdelrahman Morsy's avatar Abdelrahman Morsy Committed by Jiri Kosina
Browse files

HID: mcp-2221: cancel delayed_work only when CONFIG_IIO is enabled



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: default avatarAbdelrahman Morsy <abdelrahmanhesham94@gmail.com>
Signed-off-by: default avatarJiri Kosina <jkosina@suse.com>
parent 21f28a7e
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment