Extcon: Don't try to create duplicate link names
authorSyed Rafiuddin <srafiuddin@nvidia.com>
Mon, 3 Sep 2012 11:37:44 +0000 (16:37 +0530)
committerVarun Colbert <vcolbert@nvidia.com>
Tue, 11 Sep 2012 19:49:47 +0000 (12:49 -0700)
commitfdd5284d51128ddf0cecbec5d7efbda397d7ec1c
treeed8802fbab7b077b0050df8f75dd5451b7137e8b
parent015b625225308a168023121edb911edcdb5477da
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.

(cherry picked from commit c3b15452e253ab0629cd9e400d3fb6d76c76cb73)

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

Change-Id: I54d35756be2757f63d616f3f9cafd24d416ab8cc
Signed-off-by: Syed Rafiuddin <srafiuddin@nvidia.com>
Reviewed-on: http://git-master/r/130617
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
drivers/extcon/extcon_class.c