diff options
author | Linas Vepstas <linas@austin.ibm.com> | 2006-12-19 15:00:34 -0500 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2006-12-20 00:37:49 -0500 |
commit | bb63ab13515951f4d09b16c9e8bd6e50b0f20d1e (patch) | |
tree | 4f8611c30cc7b576bb3ddf21451bf028076673f0 | |
parent | 173935f3619ae99fef0cea1dbe4de9c83d6c8e72 (diff) |
[POWERPC] Fix PCI device channel state initialization
Initialize the pci device pci channel state. This is critical
for having the pci_channel_offline() routine (in pci.h) to
function correctly.
Signed-off-by: Linas Vepstas <linas@austin.ibm.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
-rw-r--r-- | arch/powerpc/kernel/pci_64.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/powerpc/kernel/pci_64.c b/arch/powerpc/kernel/pci_64.c index a6b7692c7269..73c59ec49120 100644 --- a/arch/powerpc/kernel/pci_64.c +++ b/arch/powerpc/kernel/pci_64.c | |||
@@ -360,6 +360,7 @@ struct pci_dev *of_create_pci_dev(struct device_node *node, | |||
360 | DBG(" class: 0x%x\n", dev->class); | 360 | DBG(" class: 0x%x\n", dev->class); |
361 | 361 | ||
362 | dev->current_state = 4; /* unknown power state */ | 362 | dev->current_state = 4; /* unknown power state */ |
363 | dev->error_state = pci_channel_io_normal; | ||
363 | 364 | ||
364 | if (!strcmp(type, "pci") || !strcmp(type, "pciex")) { | 365 | if (!strcmp(type, "pci") || !strcmp(type, "pciex")) { |
365 | /* a PCI-PCI bridge */ | 366 | /* a PCI-PCI bridge */ |