aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/firmware
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2012-01-06 21:03:02 -0500
committerLinus Torvalds <torvalds@linux-foundation.org>2012-01-06 21:03:02 -0500
commit6ed23fd6c08b3ffa17c1f841098d2fa2ab3a59dd (patch)
tree5cb5bb5dbefbb6458eff4bdae3c091ca3c02d685 /drivers/firmware
parent5ee354a0295c34aa7da07be8490f86edee2c7883 (diff)
parent2174f6df7891fa331800beb72634c969f017900b (diff)
Merge branch 'pstore' of git://git.kernel.org/pub/scm/linux/kernel/git/aegl/linux
* 'pstore' of git://git.kernel.org/pub/scm/linux/kernel/git/aegl/linux: pstore: gracefully handle NULL pstore_info functions pstore: pass reason to backend write callback
Diffstat (limited to 'drivers/firmware')
-rw-r--r--drivers/firmware/efivars.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/drivers/firmware/efivars.c b/drivers/firmware/efivars.c
index b0a81173a268..d25599f2a3f8 100644
--- a/drivers/firmware/efivars.c
+++ b/drivers/firmware/efivars.c
@@ -495,7 +495,8 @@ static ssize_t efi_pstore_read(u64 *id, enum pstore_type_id *type,
495 return 0; 495 return 0;
496} 496}
497 497
498static int efi_pstore_write(enum pstore_type_id type, u64 *id, 498static int efi_pstore_write(enum pstore_type_id type,
499 enum kmsg_dump_reason reason, u64 *id,
499 unsigned int part, size_t size, struct pstore_info *psi) 500 unsigned int part, size_t size, struct pstore_info *psi)
500{ 501{
501 char name[DUMP_NAME_LEN]; 502 char name[DUMP_NAME_LEN];
@@ -565,7 +566,7 @@ static int efi_pstore_write(enum pstore_type_id type, u64 *id,
565static int efi_pstore_erase(enum pstore_type_id type, u64 id, 566static int efi_pstore_erase(enum pstore_type_id type, u64 id,
566 struct pstore_info *psi) 567 struct pstore_info *psi)
567{ 568{
568 efi_pstore_write(type, &id, (unsigned int)id, 0, psi); 569 efi_pstore_write(type, 0, &id, (unsigned int)id, 0, psi);
569 570
570 return 0; 571 return 0;
571} 572}
@@ -587,7 +588,8 @@ static ssize_t efi_pstore_read(u64 *id, enum pstore_type_id *type,
587 return -1; 588 return -1;
588} 589}
589 590
590static int efi_pstore_write(enum pstore_type_id type, u64 *id, 591static int efi_pstore_write(enum pstore_type_id type,
592 enum kmsg_dump_reason reason, u64 *id,
591 unsigned int part, size_t size, struct pstore_info *psi) 593 unsigned int part, size_t size, struct pstore_info *psi)
592{ 594{
593 return 0; 595 return 0;