aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/extcon/extcon_class.c
diff options
context:
space:
mode:
authorMark Brown <broonie@opensource.wolfsonmicro.com>2012-06-05 11:43:53 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-06-14 20:20:09 -0400
commitc3b15452e253ab0629cd9e400d3fb6d76c76cb73 (patch)
tree60d6296507c41cb220a91540df1a03f722ac3028 /drivers/extcon/extcon_class.c
parent1d29cfa57471a5e4b8a7c2a7433eeba170d3ad92 (diff)
Extcon: Don't try to create duplicate link names
We can't create a link from the device to the compatibility switch class since we already create a link from the device to to the extcon class object and we try to use the same name for both links. This causes a loud complaint from sysfs on boot. Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/extcon/extcon_class.c')
-rw-r--r--drivers/extcon/extcon_class.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/extcon/extcon_class.c b/drivers/extcon/extcon_class.c
index f598a700ec15..159aeb07b3ba 100644
--- a/drivers/extcon/extcon_class.c
+++ b/drivers/extcon/extcon_class.c
@@ -762,7 +762,7 @@ int extcon_dev_register(struct extcon_dev *edev, struct device *dev)
762#if defined(CONFIG_ANDROID) 762#if defined(CONFIG_ANDROID)
763 if (switch_class) 763 if (switch_class)
764 ret = class_compat_create_link(switch_class, edev->dev, 764 ret = class_compat_create_link(switch_class, edev->dev,
765 dev); 765 NULL);
766#endif /* CONFIG_ANDROID */ 766#endif /* CONFIG_ANDROID */
767 767
768 spin_lock_init(&edev->lock); 768 spin_lock_init(&edev->lock);