|
@@ -762,7 +762,7 @@ int extcon_dev_register(struct extcon_dev *edev, struct device *dev)
|
|
#if defined(CONFIG_ANDROID)
|
|
#if defined(CONFIG_ANDROID)
|
|
if (switch_class)
|
|
if (switch_class)
|
|
ret = class_compat_create_link(switch_class, edev->dev,
|
|
ret = class_compat_create_link(switch_class, edev->dev,
|
|
- dev);
|
|
|
|
|
|
+ NULL);
|
|
#endif /* CONFIG_ANDROID */
|
|
#endif /* CONFIG_ANDROID */
|
|
|
|
|
|
spin_lock_init(&edev->lock);
|
|
spin_lock_init(&edev->lock);
|