diff options
author | Wolfgang Denk <wd@denx.de> | 2009-09-15 00:26:02 +0200 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2009-09-22 23:53:44 +0200 |
commit | 184a3a27f5cd2c64666f74df94c86b94c4383ef8 (patch) | |
tree | 74fad3bf46da2393f3e44ccda49e60ed1b23ec4c /board/linkstation/ide.c | |
parent | 004eca0c9ba328de457d5dc9ef8805639dfef893 (diff) | |
download | u-boot-imx-184a3a27f5cd2c64666f74df94c86b94c4383ef8.zip u-boot-imx-184a3a27f5cd2c64666f74df94c86b94c4383ef8.tar.gz u-boot-imx-184a3a27f5cd2c64666f74df94c86b94c4383ef8.tar.bz2 |
board/linkstation/ide.c: Fix compile warning
Fix warning: ide.c:60: warning: dereferencing type-punned pointer will
break strict-aliasing rules
Signed-off-by: Wolfgang Denk <wd@denx.de>
Cc: Guennadi Liakhovetski <lg@denx.de>
Diffstat (limited to 'board/linkstation/ide.c')
-rw-r--r-- | board/linkstation/ide.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/board/linkstation/ide.c b/board/linkstation/ide.c index 2c89d62..568fdf5 100644 --- a/board/linkstation/ide.c +++ b/board/linkstation/ide.c @@ -54,11 +54,13 @@ int ide_preinit (void) if (devbusfn == -1) devbusfn = pci_find_device(PCI_VENDOR_ID_ITE,PCI_DEVICE_ID_ITE_8212,0); if (devbusfn != -1) { + u32 ide_bus_offset32; + status = 0; pci_read_config_dword (devbusfn, PCI_BASE_ADDRESS_0, - (u32 *) &ide_bus_offset[0]); - ide_bus_offset[0] &= 0xfffffffe; + &ide_bus_offset32); + ide_bus_offset[0] = ide_bus_offset32 & 0xfffffffe; ide_bus_offset[0] = pci_hose_bus_to_phys(&hose, ide_bus_offset[0] & 0xfffffffe, PCI_REGION_IO); |