hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/drivers/firmware/iscsi_ibft_find.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * Copyright 2007-2010 Red Hat, Inc.
34 * by Peter Jones <pjones@redhat.com>
....@@ -7,18 +8,9 @@
78 * by Konrad Rzeszutek <ketuzsezr@darnok.org>
89 *
910 * 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.
1911 */
2012
21
-#include <linux/bootmem.h>
13
+#include <linux/memblock.h>
2214 #include <linux/blkdev.h>
2315 #include <linux/ctype.h>
2416 #include <linux/device.h>
....@@ -104,7 +96,7 @@
10496
10597 if (ibft_addr) {
10698 *sizep = PAGE_ALIGN(ibft_addr->header.length);
107
- return (u64)isa_virt_to_bus(ibft_addr);
99
+ return (u64)virt_to_phys(ibft_addr);
108100 }
109101
110102 *sizep = 0;