]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
sparc/PCI: Use PCI_UNKNOWN for unknown power state
authorBjorn Helgaas <bhelgaas@google.com>
Mon, 20 May 2013 23:15:20 +0000 (17:15 -0600)
committerBjorn Helgaas <bhelgaas@google.com>
Mon, 20 May 2013 23:45:51 +0000 (17:45 -0600)
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>
arch/sparc/kernel/pci.c

index baf4366e2d6afe937db5fe792c3183d56da4c580..972892a0aa1151f77f0da91658aab29cc9b72b01 100644 (file)
@@ -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;