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

Submitted by Herton Ronaldo Krzesinski on Nov. 22, 2012, 4:47 a.m.


Message ID 1353559640-1016-1-git-send-email-herton.krzesinski@canonical.com
State New
Headers show

Commit Message

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:


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 <peterhuewe@gmx.de>
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 <peterhuewe@gmx.de>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
[ herton: file name is extcon_class.c on 3.5 ]
Signed-off-by: Herton Ronaldo Krzesinski <herton.krzesinski@canonical.com>
 drivers/extcon/extcon_class.c |    4 ++++
 1 file changed, 4 insertions(+)


Patch hide | download patch | download mbox

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);