From 503eb88359949f917f45c039c538dc9f7d4af97e Mon Sep 17 00:00:00 2001 From: Avaneesh Kumar Dwivedi Date: Thu, 18 Aug 2016 17:46:45 +0530 Subject: soc: qcom: Fix compilation error Fix compilation error for service-locator when Kconfig option is not enabled as in perf build. Change-Id: I42bfe4417de8ed7a2e74500bf4f3aee0bedc811c Signed-off-by: Avaneesh Kumar Dwivedi --- include/soc/qcom/service-notifier.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/soc') 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, -- cgit v1.2.3