summaryrefslogtreecommitdiffstats
path: root/drivers/pps/kapi.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/pps/kapi.c')
-rw-r--r--drivers/pps/kapi.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/pps/kapi.c b/drivers/pps/kapi.c
index 805c749ac1ad..a1c3cd38754f 100644
--- a/drivers/pps/kapi.c
+++ b/drivers/pps/kapi.c
@@ -72,7 +72,8 @@ static void pps_echo_client_default(struct pps_device *pps, int event,
72 * source is described by info's fields and it will have, as default PPS 72 * source is described by info's fields and it will have, as default PPS
73 * parameters, the ones specified into default_params. 73 * parameters, the ones specified into default_params.
74 * 74 *
75 * The function returns, in case of success, the PPS device. Otherwise NULL. 75 * The function returns, in case of success, the PPS device. Otherwise
76 * ERR_PTR(errno).
76 */ 77 */
77 78
78struct pps_device *pps_register_source(struct pps_source_info *info, 79struct pps_device *pps_register_source(struct pps_source_info *info,
@@ -135,7 +136,7 @@ kfree_pps:
135pps_register_source_exit: 136pps_register_source_exit:
136 pr_err("%s: unable to register source\n", info->name); 137 pr_err("%s: unable to register source\n", info->name);
137 138
138 return NULL; 139 return ERR_PTR(err);
139} 140}
140EXPORT_SYMBOL(pps_register_source); 141EXPORT_SYMBOL(pps_register_source);
141 142