commit | 351ff11e1f3f8510bcd281eab5bbaf44099d3e75 | [log] [tgz] |
---|---|---|
author | Paul Burton <paul.burton@imgtec.com> | Thu May 26 17:32:29 2016 +0100 |
committer | Daniel Schwierzeck <daniel.schwierzeck@gmail.com> | Tue May 31 09:38:11 2016 +0200 |
tree | 9d922069025938762f6a2ea2bdf34094f5ba1655 | |
parent | ed228757a1fe54850902642af542ebbdbbb46895 [diff] |
net: pcnet: Fix init on big endian 64 bit If dev->iobase is 64 bits wide then writing the value of the BAR into a pointer to iobase will not work on big endian systems, where the BAR value will incorrectly get written to the upper 32 bits of the 64 bit variable. Fix this by reading the BAR into a u32, matching the type expected by pci_read_config_dword. Signed-off-by: Paul Burton <paul.burton@imgtec.com>