aboutsummaryrefslogtreecommitdiff
path: root/module/pik_clock
diff options
context:
space:
mode:
authorManoj Kumar <manoj.kumar3@arm.com>2018-11-09 11:45:54 +0530
committerronald-cron-arm <39518861+ronald-cron-arm@users.noreply.github.com>2018-11-15 10:59:03 +0100
commit3b2e5231db2ecae02690b8c68dd310694b16095f (patch)
tree1c5036d2f87994172d7fe19f66689e92a10bb77e /module/pik_clock
parent62b4c39ead8ed5acd3af4f19e26e49a3c8f3d08f (diff)
pik_clock: fix compiler warning when building with GCC-7 compiler
This patch fixes compiler warning that arises when building firmware without css_clock module and with GCC 7 compiler. Change-Id: I5b55a51ac4de827a2ae7332043efa92edf4853da Signed-off-by: Manoj Kumar <manoj.kumar3@arm.com>
Diffstat (limited to 'module/pik_clock')
-rw-r--r--module/pik_clock/src/mod_pik_clock.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/module/pik_clock/src/mod_pik_clock.c b/module/pik_clock/src/mod_pik_clock.c
index a812d128..136f314d 100644
--- a/module/pik_clock/src/mod_pik_clock.c
+++ b/module/pik_clock/src/mod_pik_clock.c
@@ -554,6 +554,7 @@ static const struct mod_clock_drv_api api_clock = {
* Direct driver API functions
*/
+#if BUILD_HAS_MOD_CSS_CLOCK
static int pik_clock_direct_set_div(fwk_id_t clock_id, uint32_t divider_type,
uint32_t divider)
{
@@ -656,6 +657,7 @@ static const struct mod_css_clock_direct_api api_direct = {
.set_mod = pik_clock_direct_set_mod,
.process_power_transition = pik_clock_direct_power_state_change,
};
+#endif
/*
* Framework handler functions