Skip to content

Commit

Permalink
extcon: Fix return value in extcon-class.c
Browse files Browse the repository at this point in the history
Return the value obtained from the function extcon_register_interest
instead of -ENODEV.

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
Signed-off-by: Myungjoo Ham <myungjoo.ham@samsung.com>
  • Loading branch information
Sachin Kamat authored and MyungJoo Ham committed Nov 21, 2012
1 parent d851718 commit c0c078c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/extcon/extcon-class.c
Original file line number Diff line number Diff line change
Expand Up @@ -472,7 +472,7 @@ int extcon_register_interest(struct extcon_specific_cable_nb *obj,

obj->cable_index = extcon_find_cable_index(obj->edev, cable_name);
if (obj->cable_index < 0)
return -ENODEV;
return obj->cable_index;

obj->user_nb = nb;

Expand Down

0 comments on commit c0c078c

Please sign in to comment.