summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/soc/qcom/service-notifier.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/soc/qcom/service-notifier.h b/include/soc/qcom/service-notifier.h
index 90fceba091b9..598c91f7c9e2 100644
--- a/include/soc/qcom/service-notifier.h
+++ b/include/soc/qcom/service-notifier.h
@@ -53,7 +53,7 @@ static void *service_notif_register_notifier(const char *service_path,
int instance_id, struct notifier_block *nb,
int *curr_state)
{
- return PTR_ERR(-ENODEV);
+ return ERR_PTR(-ENODEV);
}
static int service_notif_unregister_notifier(void *service_notif_handle,