Patchwork [3.5.yuz,extended,stable] Patch "extcon: unregister compat link on cleanup" has been added to staging queue

mail settings
Submitter Herton Ronaldo Krzesinski
Date Nov. 22, 2012, 4:47 a.m.
Message ID <>
Download mbox | patch
Permalink /patch/200964/
State New
Headers show


Herton Ronaldo Krzesinski - Nov. 22, 2012, 4:47 a.m.
This is a note to let you know that I have just added a patch titled

    extcon: unregister compat link on cleanup

to the linux-3.5.y-queue branch of the 3.5.yuz extended stable tree 
which can be found at:;a=shortlog;h=refs/heads/linux-3.5.y-queue

If you, or anyone else, feels it should not be added to this tree, please 
reply to this email.

For more information about the 3.5.yuz tree, see



From 6da39ece69a2b95b6491f0422e631a0e38172795 Mon Sep 17 00:00:00 2001
From: Peter Huewe <>
Date: Mon, 24 Sep 2012 15:36:24 +0900
Subject: [PATCH] extcon: unregister compat link on cleanup

commit 824a1bc045cef278aec15bef35d8d0b59ce77856 upstream.

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

Signed-off-by: Peter Huewe <>
Signed-off-by: Chanwoo Choi <>
[ herton: file name is extcon_class.c on 3.5 ]
Signed-off-by: Herton Ronaldo Krzesinski <>
 drivers/extcon/extcon_class.c |    4 ++++
 1 file changed, 4 insertions(+)



diff --git a/drivers/extcon/extcon_class.c b/drivers/extcon/extcon_class.c
index 01bac36..0a710b0 100644
--- a/drivers/extcon/extcon_class.c
+++ b/drivers/extcon/extcon_class.c
@@ -575,6 +575,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);