[PATCH] powerpc: remove eeh warning
    Olof Johansson 
    olof at lixom.net
       
    Thu Jan 12 07:02:58 EST 2006
    
    
  
Hi,
Paulus, please apply.
------
Remove warning in eeh code about mixed variables and code.
Signed-off-by: Olof Johansson <olof at lixom.net>
Index: 2.6/arch/powerpc/platforms/pseries/eeh.c
===================================================================
--- 2.6.orig/arch/powerpc/platforms/pseries/eeh.c	2006-01-11 13:34:34.000000000 -0600
+++ 2.6/arch/powerpc/platforms/pseries/eeh.c	2006-01-11 13:57:10.000000000 -0600
@@ -208,10 +208,11 @@ static void __eeh_mark_slot (struct devi
 {
 	while (dn) {
 		if (PCI_DN(dn)) {
-			PCI_DN(dn)->eeh_mode |= mode_flag;
-
 			/* Mark the pci device driver too */
 			struct pci_dev *dev = PCI_DN(dn)->pcidev;
+
+			PCI_DN(dn)->eeh_mode |= mode_flag;
+
 			if (dev && dev->driver)
 				dev->error_state = pci_channel_io_frozen;
 
    
    
More information about the Linuxppc64-dev
mailing list