diff options
Diffstat (limited to 'drivers/firmware/iscsi_ibft_find.c')
| -rw-r--r-- | drivers/firmware/iscsi_ibft_find.c | 12 | 
1 files changed, 8 insertions, 4 deletions
diff --git a/drivers/firmware/iscsi_ibft_find.c b/drivers/firmware/iscsi_ibft_find.c index dfb15c06c88..d6470ef36e4 100644 --- a/drivers/firmware/iscsi_ibft_find.c +++ b/drivers/firmware/iscsi_ibft_find.c @@ -27,7 +27,6 @@  #include <linux/limits.h>  #include <linux/module.h>  #include <linux/pci.h> -#include <linux/slab.h>  #include <linux/stat.h>  #include <linux/string.h>  #include <linux/types.h> @@ -52,7 +51,7 @@ EXPORT_SYMBOL_GPL(ibft_addr);   * Routine used to find the iSCSI Boot Format Table. The logical   * kernel address is set in the ibft_addr global variable.   */ -void __init reserve_ibft_region(void) +unsigned long __init find_ibft_region(unsigned long *sizep)  {  	unsigned long pos;  	unsigned int len = 0; @@ -78,6 +77,11 @@ void __init reserve_ibft_region(void)  			}  		}  	} -	if (ibft_addr) -		reserve_bootmem(pos, PAGE_ALIGN(len), BOOTMEM_DEFAULT); +	if (ibft_addr) { +		*sizep = PAGE_ALIGN(len); +		return pos; +	} + +	*sizep = 0; +	return 0;  }  |