fsl_sata: Fix compiler warnings shown by gcc-4.4
authorgalak <galak@ducky.am.freescale.net>
Tue, 7 Jul 2009 20:53:21 +0000 (15:53 -0500)
committerWolfgang Denk <wd@denx.de>
Mon, 20 Jul 2009 21:54:58 +0000 (23:54 +0200)
commitf14d81050a9e0fa57aedb1bc746c60a07c1ad67f
tree4d96f2b74ea264399679ba530290d7d9056d8107
parent20938e54a207472a090f04f20f30c9e32b14137e
fsl_sata: Fix compiler warnings shown by gcc-4.4

Update fsl_sata to use common structures instead of casting
back and forth between the fsl specific ones and the common ones
(which are identical).

fsl_sata.c: In function 'scan_sata':
fsl_sata.c:550: warning: dereferencing pointer 'cfis' does break strict-aliasing rules
fsl_sata.c:549: warning: dereferencing pointer 'cfis' does break strict-aliasing rules
fsl_sata.c:548: warning: dereferencing pointer 'cfis' does break strict-aliasing rules
fsl_sata.c:545: note: initialized from here
fsl_sata.c:592: warning: dereferencing pointer 'cfis' does break strict-aliasing rules
fsl_sata.c:590: warning: dereferencing pointer 'cfis' does break strict-aliasing rules
fsl_sata.c:588: warning: dereferencing pointer 'cfis' does break strict-aliasing rules
fsl_sata.c:586: warning: dereferencing pointer 'cfis' does break strict-aliasing rules
fsl_sata.c:579: warning: dereferencing pointer 'cfis' does break strict-aliasing rules
...

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
drivers/block/fsl_sata.c
drivers/block/fsl_sata.h