Commit c3b15452e253ab0629cd9e400d3fb6d76c76cb73

Authored by Mark Brown
Committed by Greg Kroah-Hartman
1 parent 1d29cfa574

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>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

drivers/extcon/extcon_class.c
... ... @@ -762,7 +762,7 @@
762 762 #if defined(CONFIG_ANDROID)
763 763 if (switch_class)
764 764 ret = class_compat_create_link(switch_class, edev->dev,
765   - dev);
  765 + NULL);
766 766 #endif /* CONFIG_ANDROID */
767 767  
768 768 spin_lock_init(&edev->lock);