summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorPuja Gupta <pujag@codeaurora.org>2016-08-15 17:22:12 -0700
committerPuja Gupta <pujag@codeaurora.org>2016-08-15 17:25:17 -0700
commit4fe225dbd93dcf58599bc59430a764c7b55e0ec3 (patch)
treed931b62a678aea837f7aedcee07045993ac7ad02 /include
parent2e45ea728118fa88ba245a0a755d0a3844d9f54e (diff)
soc: qcom: Fix compilation warning/error
Fix couple of compilation error for service-locator when Kconfig option is not enabled. CRs-Fixed: 1048345 Change-Id: I5eb1318d1e3a62619869033b36479c4e68f1602f Signed-off-by: Puja Gupta <pujag@codeaurora.org>
Diffstat (limited to 'include')
-rw-r--r--include/soc/qcom/service-locator.h2
-rw-r--r--include/soc/qcom/service-notifier.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/include/soc/qcom/service-locator.h b/include/soc/qcom/service-locator.h
index 6bf8ac0be15f..7fa25b90fc12 100644
--- a/include/soc/qcom/service-locator.h
+++ b/include/soc/qcom/service-locator.h
@@ -80,7 +80,7 @@ int find_subsys(const char *pd_path, char *subsys);
#else
static inline int get_service_location(char *client_name,
- char *service_name, struct notifier_block *locator_nb);
+ char *service_name, struct notifier_block *locator_nb)
{
return -ENODEV;
}
diff --git a/include/soc/qcom/service-notifier.h b/include/soc/qcom/service-notifier.h
index be3f134eebe3..90fceba091b9 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 -ENODEV;
+ return PTR_ERR(-ENODEV);
}
static int service_notif_unregister_notifier(void *service_notif_handle,