]> err.no Git - linux-2.6/commitdiff
[PATCH] powerpc/pseries: fix device name printing, again.
authorLinas Vepstas <linas@austin.ibm.com>
Thu, 30 Mar 2006 21:27:33 +0000 (15:27 -0600)
committerPaul Mackerras <paulus@samba.org>
Sat, 1 Apr 2006 11:37:02 +0000 (22:37 +1100)
The recent patch to print device names in EEH reset messages
was lacking ... this patch works better.

Signed-off-by: Linas Vepstas <linas@linas.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/platforms/pseries/eeh_driver.c

index 0c6b7d7ce9e8a8d475280c12ae813f0db8484b8d..1fba695e32e82d113cbfcab42e18cfc69ae0da62 100644 (file)
@@ -293,9 +293,10 @@ void handle_eeh_events (struct eeh_event *event)
        frozen_pdn = PCI_DN(frozen_dn);
        frozen_pdn->eeh_freeze_count++;
 
-       pci_str = pci_name (frozen_pdn->pcidev);
-       drv_str = pcid_name (frozen_pdn->pcidev);
-       if (!pci_str) {
+       if (frozen_pdn->pcidev) {
+               pci_str = pci_name (frozen_pdn->pcidev);
+               drv_str = pcid_name (frozen_pdn->pcidev);
+       } else {
                pci_str = pci_name (event->dev);
                drv_str = pcid_name (event->dev);
        }