Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 362805
b: refs/heads/master
c: 4e4d035
h: refs/heads/master
i:
  362803: 77674cc
v: v3
  • Loading branch information
Sebastian Ott authored and Martin Schwidefsky committed Apr 17, 2013
1 parent a651132 commit a7b6606
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 35 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 89b0dc958b7ac08ecf23ca25df98f7effe897ed9
refs/heads/master: 4e4d035a928340e828f633059b735901584c67a7
34 changes: 0 additions & 34 deletions trunk/arch/s390/pci/pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -600,19 +600,6 @@ static void zpci_map_resources(struct zpci_dev *zdev)
}
};

static void zpci_unmap_resources(struct pci_dev *pdev)
{
resource_size_t len;
int i;

for (i = 0; i < PCI_BAR_COUNT; i++) {
len = pci_resource_len(pdev, i);
if (!len)
continue;
pci_iounmap(pdev, (void *) pdev->resource[i].start);
}
};

struct zpci_dev *zpci_alloc_device(void)
{
struct zpci_dev *zdev;
Expand Down Expand Up @@ -640,21 +627,6 @@ void zpci_free_device(struct zpci_dev *zdev)
kfree(zdev);
}

/* Called on removal of pci_dev, leaves zpci and bus device */
static void zpci_remove_device(struct pci_dev *pdev)
{
struct zpci_dev *zdev = get_zdev(pdev);

dev_info(&pdev->dev, "Removing device %u\n", zdev->domain);
zdev->state = ZPCI_FN_STATE_CONFIGURED;
zpci_dma_exit_device(zdev);
zpci_fmb_disable_device(zdev);
zpci_sysfs_remove_device(&pdev->dev);
zpci_unmap_resources(pdev);
list_del(&zdev->entry); /* can be called from init */
zdev->pdev = NULL;
}

static void zpci_scan_devices(void)
{
struct zpci_dev *zdev;
Expand Down Expand Up @@ -692,12 +664,6 @@ int pcibios_enable_device(struct pci_dev *pdev, int mask)
return 0;
}

void pcibios_disable_device(struct pci_dev *pdev)
{
zpci_remove_device(pdev);
pdev->sysdata = NULL;
}

int pcibios_add_platform_entries(struct pci_dev *pdev)
{
return zpci_sysfs_add_device(&pdev->dev);
Expand Down

0 comments on commit a7b6606

Please sign in to comment.