Skip to content

Commit

Permalink
iscsi_ibft: use virt_to_phys instead of isa_virt_to_bus
Browse files Browse the repository at this point in the history
As far as I can tell IBFT is a firmware table and has nothing to do with
the good old ISA bus.  And even if it the two would be the same on x86
anyway.  So remove the isa_virt_to_bus call in preparation of eventually
removing that API entirely.

Signed-off-by: Christoph Hellwig <[email protected]>
Signed-off-by: Konrad Rzeszutek Wilk <[email protected]>
  • Loading branch information
Christoph Hellwig authored and konradwilk committed Feb 12, 2019
1 parent df997ab commit 8bd04c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/firmware/iscsi_ibft_find.c
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ unsigned long __init find_ibft_region(unsigned long *sizep)

if (ibft_addr) {
*sizep = PAGE_ALIGN(ibft_addr->header.length);
return (u64)isa_virt_to_bus(ibft_addr);
return (u64)virt_to_phys(ibft_addr);
}

*sizep = 0;
Expand Down

0 comments on commit 8bd04c5

Please sign in to comment.