]> git.baikalelectronics.ru Git - kernel.git/commit
Extcon: Don't try to create duplicate link names
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Tue, 5 Jun 2012 15:43:53 +0000 (16:43 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 15 Jun 2012 00:20:09 +0000 (17:20 -0700)
commit76bad738ec8696aec56ef6a99da530616ae880f3
tree60d6296507c41cb220a91540df1a03f722ac3028
parente0627c65d06253817c9bc3d903ebecaf82d1b376
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>
drivers/extcon/extcon_class.c