aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'drivers')
-rw-r--r--drivers/firmware/iscsi_ibft_find.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/drivers/firmware/iscsi_ibft_find.c b/drivers/firmware/iscsi_ibft_find.c
index dfb15c06c88f..8f5d9e258829 100644
--- a/drivers/firmware/iscsi_ibft_find.c
+++ b/drivers/firmware/iscsi_ibft_find.c
@@ -52,7 +52,7 @@ EXPORT_SYMBOL_GPL(ibft_addr);
52 * Routine used to find the iSCSI Boot Format Table. The logical 52 * Routine used to find the iSCSI Boot Format Table. The logical
53 * kernel address is set in the ibft_addr global variable. 53 * kernel address is set in the ibft_addr global variable.
54 */ 54 */
55void __init reserve_ibft_region(void) 55unsigned long __init find_ibft_region(unsigned long *sizep)
56{ 56{
57 unsigned long pos; 57 unsigned long pos;
58 unsigned int len = 0; 58 unsigned int len = 0;
@@ -78,6 +78,11 @@ void __init reserve_ibft_region(void)
78 } 78 }
79 } 79 }
80 } 80 }
81 if (ibft_addr) 81 if (ibft_addr) {
82 reserve_bootmem(pos, PAGE_ALIGN(len), BOOTMEM_DEFAULT); 82 *sizep = PAGE_ALIGN(len);
83 return pos;
84 }
85
86 *sizep = 0;
87 return 0;
83} 88}