aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc
diff options
context:
space:
mode:
Diffstat (limited to 'arch/powerpc')
-rw-r--r--arch/powerpc/Kconfig6
-rw-r--r--arch/powerpc/kernel/pci_32.c4
-rw-r--r--arch/powerpc/kernel/pci_64.c6
3 files changed, 10 insertions, 6 deletions
diff --git a/arch/powerpc/Kconfig b/arch/powerpc/Kconfig
index 5eaeafd30bdf..6beee32144c0 100644
--- a/arch/powerpc/Kconfig
+++ b/arch/powerpc/Kconfig
@@ -698,8 +698,10 @@ config PCI
698 infrastructure code to support PCI bus devices. 698 infrastructure code to support PCI bus devices.
699 699
700config PCI_DOMAINS 700config PCI_DOMAINS
701 bool 701 def_bool PCI
702 default PCI 702
703config PCI_SYSCALL
704 def_bool PCI
703 705
704config PCI_QSPAN 706config PCI_QSPAN
705 bool "QSpan PCI" 707 bool "QSpan PCI"
diff --git a/arch/powerpc/kernel/pci_32.c b/arch/powerpc/kernel/pci_32.c
index e66064b5093a..86982112b0dd 100644
--- a/arch/powerpc/kernel/pci_32.c
+++ b/arch/powerpc/kernel/pci_32.c
@@ -1047,10 +1047,10 @@ void pcibios_make_OF_bus_map(void)
1047#endif /* CONFIG_PPC_OF */ 1047#endif /* CONFIG_PPC_OF */
1048 1048
1049/* Add sysfs properties */ 1049/* Add sysfs properties */
1050void pcibios_add_platform_entries(struct pci_dev *pdev) 1050int pcibios_add_platform_entries(struct pci_dev *pdev)
1051{ 1051{
1052#ifdef CONFIG_PPC_OF 1052#ifdef CONFIG_PPC_OF
1053 device_create_file(&pdev->dev, &dev_attr_devspec); 1053 return device_create_file(&pdev->dev, &dev_attr_devspec);
1054#endif /* CONFIG_PPC_OF */ 1054#endif /* CONFIG_PPC_OF */
1055} 1055}
1056 1056
diff --git a/arch/powerpc/kernel/pci_64.c b/arch/powerpc/kernel/pci_64.c
index 249cca27a9b8..e3009a43ac56 100644
--- a/arch/powerpc/kernel/pci_64.c
+++ b/arch/powerpc/kernel/pci_64.c
@@ -367,8 +367,10 @@ struct pci_dev *of_create_pci_dev(struct device_node *node,
367 sprintf(pci_name(dev), "%04x:%02x:%02x.%d", pci_domain_nr(bus), 367 sprintf(pci_name(dev), "%04x:%02x:%02x.%d", pci_domain_nr(bus),
368 dev->bus->number, PCI_SLOT(devfn), PCI_FUNC(devfn)); 368 dev->bus->number, PCI_SLOT(devfn), PCI_FUNC(devfn));
369 dev->class = get_int_prop(node, "class-code", 0); 369 dev->class = get_int_prop(node, "class-code", 0);
370 dev->revision = get_int_prop(node, "revision-id", 0);
370 371
371 DBG(" class: 0x%x\n", dev->class); 372 DBG(" class: 0x%x\n", dev->class);
373 DBG(" revision: 0x%x\n", dev->revision);
372 374
373 dev->current_state = 4; /* unknown power state */ 375 dev->current_state = 4; /* unknown power state */
374 dev->error_state = pci_channel_io_normal; 376 dev->error_state = pci_channel_io_normal;
@@ -876,9 +878,9 @@ static ssize_t pci_show_devspec(struct device *dev,
876} 878}
877static DEVICE_ATTR(devspec, S_IRUGO, pci_show_devspec, NULL); 879static DEVICE_ATTR(devspec, S_IRUGO, pci_show_devspec, NULL);
878 880
879void pcibios_add_platform_entries(struct pci_dev *pdev) 881int pcibios_add_platform_entries(struct pci_dev *pdev)
880{ 882{
881 device_create_file(&pdev->dev, &dev_attr_devspec); 883 return device_create_file(&pdev->dev, &dev_attr_devspec);
882} 884}
883 885
884#define ISA_SPACE_MASK 0x1 886#define ISA_SPACE_MASK 0x1