security: tf: resolve compilation time warnings
Sanjay Singh Rawat [Mon, 26 Mar 2012 10:15:23 +0000 (15:15 +0530)]
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>

Rebase-Id: Rd290a611821faeac3d42d4a647855712e9450cb8

security/tf_driver/tf_device.c

index 5d5f3c6..8f31bf3 100644 (file)
@@ -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");
 }