summaryrefslogtreecommitdiff
path: root/security
diff options
context:
space:
mode:
authorSanjay Singh Rawat <srawat@nvidia.com>2012-03-26 15:45:23 +0530
committerVarun Wadekar <vwadekar@nvidia.com>2012-05-14 17:58:30 +0530
commitf938968e65f99158132316a0f7b3c8105624fa1c (patch)
tree516894a109cbc07fbba3baf47a3d738f139a0edc /security
parent15973502e79c265aa1a35340d4b28789519f59f4 (diff)
security: tf: resolve compilation time warnings
bug 949219 Change-Id: Ia7d23d3aab631e6a78c53518bc1f608d46e8f341 Signed-off-by: Sanjay Singh Rawat <srawat@nvidia.com> Reviewed-on: http://git-master/r/92260 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Diffstat (limited to 'security')
-rw-r--r--security/tf_driver/tf_device.c17
1 files changed, 8 insertions, 9 deletions
diff --git a/security/tf_driver/tf_device.c b/security/tf_driver/tf_device.c
index 5d5f3c63ce88..8f31bf35f90a 100644
--- a/security/tf_driver/tf_device.c
+++ b/security/tf_driver/tf_device.c
@@ -87,7 +87,7 @@ static long tf_device_ioctl(
/*
* Implements the device shutdown callback.
*/
-static int tf_device_shutdown(void);
+static void tf_device_shutdown(void);
/*
@@ -99,7 +99,7 @@ static int tf_device_suspend(void);
/*
* Implements the device resume callback.
*/
-static int tf_device_resume(void);
+static void tf_device_resume(void);
/*---------------------------------------------------------------------------
@@ -762,11 +762,10 @@ exit:
/*----------------------------------------------------------------------------*/
-static int tf_device_shutdown(void)
+static void tf_device_shutdown(void)
{
-
- return tf_power_management(&g_tf_dev.sm,
- TF_POWER_OPERATION_SHUTDOWN);
+ if (0 > tf_power_management(&g_tf_dev.sm, TF_POWER_OPERATION_SHUTDOWN))
+ dprintk(KERN_ERR "tf_device_shutdown failing\n");
}
/*----------------------------------------------------------------------------*/
@@ -781,10 +780,10 @@ static int tf_device_suspend(void)
/*----------------------------------------------------------------------------*/
-static int tf_device_resume(void)
+static void tf_device_resume(void)
{
- return tf_power_management(&g_tf_dev.sm,
- TF_POWER_OPERATION_RESUME);
+ if (0 > tf_power_management(&g_tf_dev.sm, TF_POWER_OPERATION_RESUME))
+ dprintk(KERN_ERR "tf_device_resume failing\n");
}