extcon: Fix extcon_get_extcon_dev() error handling
[platform/kernel/linux-rpi.git] / include / linux / extcon.h
index 0c19010..685401d 100644 (file)
@@ -296,7 +296,7 @@ static inline void devm_extcon_unregister_notifier_all(struct device *dev,
 
 static inline struct extcon_dev *extcon_get_extcon_dev(const char *extcon_name)
 {
-       return ERR_PTR(-ENODEV);
+       return NULL;
 }
 
 static inline struct extcon_dev *extcon_find_edev_by_node(struct device_node *node)