x86: Correct endianness isues in pci_rom
authorSimon Glass <sjg@chromium.org>
Tue, 30 Dec 2014 02:32:23 +0000 (19:32 -0700)
committerSimon Glass <sjg@chromium.org>
Sat, 24 Jan 2015 00:24:15 +0000 (17:24 -0700)
commit40305240c66ab5e3725c131e321402c7dfe687a2
tree28c56e4079fdd3126c9774b9c8766f3cf8861629
parente5bc97578c189a99c291f7fe7ce89092474e43e9
x86: Correct endianness isues in pci_rom

This code is too x86-dependent at present. Correct it so that it can run on
big-endian machines.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
drivers/pci/pci_rom.c