[OPW,kernel,5/5] arch: powerpc: Use new pstore_info API
diff mbox

Message ID 1414668348-14847-6-git-send-email-somyaanand214@gmail.com
State New, archived
Headers show

Commit Message

Somya Anand Oct. 30, 2014, 11:25 a.m. UTC
'struct pstore_info' now uses 'timespec64', so we have to modify
.read function to use 'struct timespec64' instead of 'struct timespec'.

Signed-off-by: Somya Anand <somyaanand214@gmail.com>
---
 arch/powerpc/platforms/pseries/nvram.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

Patch
diff mbox

diff --git a/arch/powerpc/platforms/pseries/nvram.c b/arch/powerpc/platforms/pseries/nvram.c
index f954ff9..730fba1 100644
--- a/arch/powerpc/platforms/pseries/nvram.c
+++ b/arch/powerpc/platforms/pseries/nvram.c
@@ -598,7 +598,7 @@  static int nvram_pstore_write(enum pstore_type_id type,
  * Returns 0 if we've been called before.
  */
 static ssize_t nvram_pstore_read(u64 *id, enum pstore_type_id *type,
-				int *count, struct timespec *time, char **buf,
+				int *count, struct timespec64 *ts64, char **buf,
 				bool *compressed, struct pstore_info *psi)
 {
 	struct oops_log_info *oops_hdr;
@@ -607,7 +607,6 @@  static ssize_t nvram_pstore_read(u64 *id, enum pstore_type_id *type,
 	char *buff = NULL;
 	int sig = 0;
 	loff_t p;
-	struct timepec64 *ts64 = time;
 
 	read_type++;