[PATCH 3/3] qcom: soc: llcc-slice: Return correct error for llcc_slice_getd stub

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The real llcc_slide_getd() function returns ERR_PTR() encoded errors
so the stub function should too.

Signed-off-by: Jordan Crouse <jcrouse@xxxxxxxxxxxxxx>
---
 include/linux/soc/qcom/llcc-qcom.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/linux/soc/qcom/llcc-qcom.h b/include/linux/soc/qcom/llcc-qcom.h
index eb71a50b8afc..e9806d548834 100644
--- a/include/linux/soc/qcom/llcc-qcom.h
+++ b/include/linux/soc/qcom/llcc-qcom.h
@@ -171,7 +171,7 @@ int qcom_llcc_remove(struct platform_device *pdev);
 #else
 static inline struct llcc_slice_desc *llcc_slice_getd(u32 uid)
 {
-	return NULL;
+	return ERR_PTR(-ENODEV);
 }
 
 static inline void llcc_slice_putd(struct llcc_slice_desc *desc)
-- 
2.18.0




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [Linux for Sparc]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux