[PATCH] qla: remove anonymous union
authorAndrew Morton <akpm@osdl.org>
Tue, 26 Jul 2005 21:11:28 +0000 (14:11 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Tue, 26 Jul 2005 21:34:18 +0000 (14:34 -0700)
Older gcc's dont support anonymous unions, so this driver gets hundreds of
error.

Fortunately the fix is easy...

Cc: James Bottomley <James.Bottomley@steeleye.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/scsi/qla2xxx/qla_def.h

index acf40dc..1c6d366 100644 (file)
@@ -451,11 +451,9 @@ struct device_reg_2xxx {
        } u_end;
 };
 
-typedef struct {
-       union {
+typedef union {
                struct device_reg_2xxx isp;
                struct device_reg_24xx isp24;
-       };
 } device_reg_t;
 
 #define ISP_REQ_Q_IN(ha, reg) \