summaryrefslogtreecommitdiffstats
path: root/arch/sparc
diff options
context:
space:
mode:
authorBjorn Helgaas <bhelgaas@google.com>2013-05-20 17:15:20 -0600
committerBjorn Helgaas <bhelgaas@google.com>2013-05-20 17:45:51 -0600
commitde7f2b1bdf02f6b44410dceb7295284c2a75a304 (patch)
treecaa959a7f07d9ec54b13d00275a40aaa0fee350f /arch/sparc
parentc2defb5f78e249a1402bc2af969a151af0391de8 (diff)
downloadlinux-de7f2b1bdf02f6b44410dceb7295284c2a75a304.tar.gz
linux-de7f2b1bdf02f6b44410dceb7295284c2a75a304.tar.bz2
linux-de7f2b1bdf02f6b44410dceb7295284c2a75a304.zip
sparc/PCI: Use PCI_UNKNOWN for unknown power state
Previously we initialized dev->current_state to 4 (PCI_D3cold), but I think we wanted PCI_UNKNOWN (5) here based on the comment and the fact that the generic version of this code, pci_setup_device(), uses PCI_UNKNOWN. Signed-off-by: Bjorn Helgaas <bhelgaas@google.com> Acked-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc')
-rw-r--r--arch/sparc/kernel/pci.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/sparc/kernel/pci.c b/arch/sparc/kernel/pci.c
index baf4366e2d6a..972892a0aa11 100644
--- a/arch/sparc/kernel/pci.c
+++ b/arch/sparc/kernel/pci.c
@@ -327,7 +327,7 @@ static struct pci_dev *of_create_pci_dev(struct pci_pbm_info *pbm,
if ((dev->class >> 8) == PCI_CLASS_STORAGE_IDE)
pci_set_master(dev);
- dev->current_state = 4; /* unknown power state */
+ dev->current_state = PCI_UNKNOWN; /* unknown power state */
dev->error_state = pci_channel_io_normal;
dev->dma_mask = 0xffffffff;