Commit 824a1bc0 authored by Peter Huewe's avatar Peter Huewe Committed by MyungJoo Ham

extcon: unregister compat link on cleanup

Since extcon registers this compat link at device registration
(extcon_dev_register), we should probably remove them at deregistration/cleanup.

Signed-off-by: default avatarPeter Huewe <>
Signed-off-by: default avatarChanwoo Choi <>
parent 0dc77b6d
......@@ -570,6 +570,10 @@ static void extcon_cleanup(struct extcon_dev *edev, bool skip)
#if defined(CONFIG_ANDROID)
if (switch_class)
class_compat_remove_link(switch_class, edev->dev, NULL);
Markdown is supported
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