.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
---|
1 | 2 | /* |
---|
2 | 3 | * Copyright 2007-2010 Red Hat, Inc. |
---|
3 | 4 | * by Peter Jones <pjones@redhat.com> |
---|
.. | .. |
---|
7 | 8 | * by Konrad Rzeszutek <ketuzsezr@darnok.org> |
---|
8 | 9 | * |
---|
9 | 10 | * This code finds the iSCSI Boot Format Table. |
---|
10 | | - * |
---|
11 | | - * This program is free software; you can redistribute it and/or modify |
---|
12 | | - * it under the terms of the GNU General Public License v2.0 as published by |
---|
13 | | - * the Free Software Foundation |
---|
14 | | - * |
---|
15 | | - * This program is distributed in the hope that it will be useful, |
---|
16 | | - * but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
17 | | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
18 | | - * GNU General Public License for more details. |
---|
19 | 11 | */ |
---|
20 | 12 | |
---|
21 | | -#include <linux/bootmem.h> |
---|
| 13 | +#include <linux/memblock.h> |
---|
22 | 14 | #include <linux/blkdev.h> |
---|
23 | 15 | #include <linux/ctype.h> |
---|
24 | 16 | #include <linux/device.h> |
---|
.. | .. |
---|
104 | 96 | |
---|
105 | 97 | if (ibft_addr) { |
---|
106 | 98 | *sizep = PAGE_ALIGN(ibft_addr->header.length); |
---|
107 | | - return (u64)isa_virt_to_bus(ibft_addr); |
---|
| 99 | + return (u64)virt_to_phys(ibft_addr); |
---|
108 | 100 | } |
---|
109 | 101 | |
---|
110 | 102 | *sizep = 0; |
---|