summaryrefslogtreecommitdiff
path: root/drivers/crypto
diff options
context:
space:
mode:
authorAndrey Markovytch <andreym@codeaurora.org>2016-04-14 15:57:59 +0300
committerJeevan Shriram <jshriram@codeaurora.org>2016-04-25 17:45:12 -0700
commit0fb5a0c53e15bc06c160d29b31eb2de20ffe0b05 (patch)
tree55bed59820d445e58ccf3fdd4d3a12a74df42064 /drivers/crypto
parent07d9b132b45c664889fccbed0da5c27cc0cfbefe (diff)
crypto: ice: add stub bus scaling functions
Bus scaling might be disabled in the kernel configuration of some platforms, in which case initialization will fail due to the lack of bus scaling support. Add stub functions to allow initialization without bus scaling. Change-Id: Ib1edeac145ef1696e657f775cd938839b79dbac0 Signed-off-by: Gilad Broner <gbroner@codeaurora.org> Signed-off-by: Andrey Markovytch <andreym@codeaurora.org>
Diffstat (limited to 'drivers/crypto')
-rw-r--r--drivers/crypto/msm/ice.c21
1 files changed, 21 insertions, 0 deletions
diff --git a/drivers/crypto/msm/ice.c b/drivers/crypto/msm/ice.c
index b22ef5779bed..337c3be89637 100644
--- a/drivers/crypto/msm/ice.c
+++ b/drivers/crypto/msm/ice.c
@@ -141,6 +141,8 @@ static int qti_ice_setting_config(struct request *req,
static int qcom_ice_enable_clocks(struct ice_device *, bool);
+#ifdef CONFIG_MSM_BUS_SCALING
+
static int qcom_ice_set_bus_vote(struct ice_device *ice_dev, int vote)
{
int err = 0;
@@ -224,6 +226,25 @@ out:
return err;
}
+#else
+
+static int qcom_ice_set_bus_vote(struct ice_device *ice_dev, int vote)
+{
+ return 0;
+}
+
+static int qcom_ice_get_bus_vote(struct ice_device *ice_dev,
+ const char *speed_mode)
+{
+ return 0;
+}
+
+static int qcom_ice_bus_register(struct ice_device *ice_dev)
+{
+ return 0;
+}
+#endif /* CONFIG_MSM_BUS_SCALING */
+
static int qcom_ice_get_vreg(struct ice_device *ice_dev)
{
int ret = 0;