From: Mark Brown Date: Tue, 5 Jun 2012 15:43:53 +0000 (+0100) Subject: Extcon: Don't try to create duplicate link names X-Git-Tag: v3.5-rc4~17^2~8 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c3b15452e253ab0629cd9e400d3fb6d76c76cb73;p=profile%2Fivi%2Fkernel-x86-ivi.git 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 Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/extcon/extcon_class.c b/drivers/extcon/extcon_class.c index f598a70..159aeb0 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) #if defined(CONFIG_ANDROID) if (switch_class) ret = class_compat_create_link(switch_class, edev->dev, - dev); + NULL); #endif /* CONFIG_ANDROID */ spin_lock_init(&edev->lock);