aboutsummaryrefslogtreecommitdiffstats
path: root/arch/s390/pci/pci.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/s390/pci/pci.c')
-rw-r--r--arch/s390/pci/pci.c34
1 files changed, 0 insertions, 34 deletions
diff --git a/arch/s390/pci/pci.c b/arch/s390/pci/pci.c
index dd8e13ef506c..48de2be7b46a 100644
--- a/arch/s390/pci/pci.c
+++ b/arch/s390/pci/pci.c
@@ -600,19 +600,6 @@ static void zpci_map_resources(struct zpci_dev *zdev)
600 } 600 }
601}; 601};
602 602
603static void zpci_unmap_resources(struct pci_dev *pdev)
604{
605 resource_size_t len;
606 int i;
607
608 for (i = 0; i < PCI_BAR_COUNT; i++) {
609 len = pci_resource_len(pdev, i);
610 if (!len)
611 continue;
612 pci_iounmap(pdev, (void *) pdev->resource[i].start);
613 }
614};
615
616struct zpci_dev *zpci_alloc_device(void) 603struct zpci_dev *zpci_alloc_device(void)
617{ 604{
618 struct zpci_dev *zdev; 605 struct zpci_dev *zdev;
@@ -640,21 +627,6 @@ void zpci_free_device(struct zpci_dev *zdev)
640 kfree(zdev); 627 kfree(zdev);
641} 628}
642 629
643/* Called on removal of pci_dev, leaves zpci and bus device */
644static void zpci_remove_device(struct pci_dev *pdev)
645{
646 struct zpci_dev *zdev = get_zdev(pdev);
647
648 dev_info(&pdev->dev, "Removing device %u\n", zdev->domain);
649 zdev->state = ZPCI_FN_STATE_CONFIGURED;
650 zpci_dma_exit_device(zdev);
651 zpci_fmb_disable_device(zdev);
652 zpci_sysfs_remove_device(&pdev->dev);
653 zpci_unmap_resources(pdev);
654 list_del(&zdev->entry); /* can be called from init */
655 zdev->pdev = NULL;
656}
657
658static void zpci_scan_devices(void) 630static void zpci_scan_devices(void)
659{ 631{
660 struct zpci_dev *zdev; 632 struct zpci_dev *zdev;
@@ -692,12 +664,6 @@ int pcibios_enable_device(struct pci_dev *pdev, int mask)
692 return 0; 664 return 0;
693} 665}
694 666
695void pcibios_disable_device(struct pci_dev *pdev)
696{
697 zpci_remove_device(pdev);
698 pdev->sysdata = NULL;
699}
700
701int pcibios_add_platform_entries(struct pci_dev *pdev) 667int pcibios_add_platform_entries(struct pci_dev *pdev)
702{ 668{
703 return zpci_sysfs_add_device(&pdev->dev); 669 return zpci_sysfs_add_device(&pdev->dev);