extcon: driver model release call not needed
authoranish kumar <anish198519851985@gmail.com>
Mon, 22 Oct 2012 00:43:33 +0000 (09:43 +0900)
committerMyungJoo Ham <myungjoo.ham@samsung.com>
Tue, 23 Oct 2012 07:32:17 +0000 (16:32 +0900)
commit57e7cd37059bb00cd56b60b95b8799af0db91e18
tree06a6512cc4b59cc65c41ef8ed2be571f476b02b0
parentf8457d574f680a98c77846a15df13086ab1ab426
extcon: driver model release call not needed

There was a case where free and list_del can be called twice
on the same pointer.So fixed it by re-arranging the code and
removing a function which was not needed.

Signed-off-by: anish kumar <anish198519851985@gmail.com>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
drivers/extcon/extcon-class.c