extcon: fix duplicate create switch class
authorWu Liang feng <wulf@rock-chips.com>
Wed, 6 Jul 2016 02:08:56 +0000 (10:08 +0800)
committerHuang, Tao <huangtao@rock-chips.com>
Wed, 6 Jul 2016 05:59:23 +0000 (13:59 +0800)
commite8f0a9830b0b5432b7cfdafdce9eb933807dce14
tree7f55f0dda9808c2a431871e7ea1e16b62ed82dd6
parent62b5ed622d843f8870c6a0779a9088e9b905cdfd
extcon: fix duplicate create switch class

If "CONFIG_ANDROID" and "CONFIG_SWITCH" are enabled,
/sys/class/switch/* are created in switch classe driver,
so we can't create switch class again in extcon.

Change-Id: Ida627cfdbb3ecb6f0aa40af146a66897edafd2fe
Signed-off-by: Wu Liang feng <wulf@rock-chips.com>
drivers/extcon/extcon.c