]> rtime.felk.cvut.cz Git - zynq/linux.git/commit
soc: xilinx: Guard code which is called only for debugfs
authorMichal Simek <michal.simek@xilinx.com>
Thu, 28 Jul 2016 13:06:21 +0000 (15:06 +0200)
committerMichal Simek <michal.simek@xilinx.com>
Fri, 29 Jul 2016 07:09:59 +0000 (09:09 +0200)
commit40d3a2a9427b899f43a2d60fe3bb3bd6b081d4c5
tree74ee9a6e4fa2c33e0e3dd8a9762baed9d470b124
parentb199938b9a969ba15910a160662eeda24750d407
soc: xilinx: Guard code which is called only for debugfs

Some functions are called only when debugfs for PM is enabled.
This patch removes compilation warnings:
drivers/soc/xilinx/zynqmp/pm.c:251:12: warning: ‘zynqmp_pm_self_suspend’
defined but not used [-Wunused-function]
 static int zynqmp_pm_self_suspend(const u32 node,
            ^
drivers/soc/xilinx/zynqmp/pm.c:300:12: warning:
‘zynqmp_pm_abort_suspend’ defined but not used [-Wunused-function]
 static int zynqmp_pm_abort_suspend(const enum zynqmp_pm_abort_reason
reason)
            ^
drivers/soc/xilinx/zynqmp/pm.c:494:12: warning:
‘zynqmp_pm_register_notifier’ defined but not used [-Wunused-function]
 static int zynqmp_pm_register_notifier(const u32 node, const u32 event,

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
drivers/soc/xilinx/zynqmp/pm.c