]> git.hungrycats.org Git - linux/commitdiff
[PATCH] ppc64: Add eeh calls to hotplug driver
authorAndrew Morton <akpm@osdl.org>
Mon, 22 Mar 2004 09:53:49 +0000 (01:53 -0800)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Mon, 22 Mar 2004 09:53:49 +0000 (01:53 -0800)
From: Anton Blanchard <anton@samba.org>

The ppc64 hotplug code must register and deregister devices with the extended
error handling (EEH) subsystem.

drivers/pci/hotplug/rpaphp_pci.c

index 7f91e1b76e4c420baa8a7408e374f1b2ae6637a3..8a178a16b9e1e75524fd4088d04a60416cf49dca 100644 (file)
@@ -257,6 +257,7 @@ static struct pci_dev *rpaphp_config_pci_adapter(struct slot *slot)
                }
 
                dev = rpaphp_pci_config_dn(slot->dn, pci_bus);
+               eeh_add_device(dev);
        } else {
                /* slot is not enabled */
                err("slot doesn't have pci_dev structure\n");
@@ -281,6 +282,7 @@ int rpaphp_unconfig_pci_adapter(struct slot *slot)
                goto exit;
        }
        /* remove the device from the pci core */
+       eeh_remove_device(slot->dev.pci_dev);
        pci_remove_bus_device(slot->dev.pci_dev);
 
        slot->state = NOT_CONFIGURED;