Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 4951
b: refs/heads/master
c: 056a876
h: refs/heads/master
i:
  4949: e775a52
  4947: 8fd8201
  4943: 12ccdae
v: v3
  • Loading branch information
Russell King authored and Russell King committed Jul 22, 2005
1 parent fb4c468 commit 0fcc978
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 21 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: fbc0dc0df54be06586d712ebf6958816e3b1b2b7
refs/heads/master: 056a8763fc036639441a6dc49b61e57bc632af6e
37 changes: 17 additions & 20 deletions trunk/drivers/serial/8250_pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -1766,33 +1766,30 @@ pciserial_init_one(struct pci_dev *dev, const struct pci_device_id *ent)
static void __devexit pciserial_remove_one(struct pci_dev *dev)
{
struct serial_private *priv = pci_get_drvdata(dev);
struct pci_serial_quirk *quirk;
int i;

pci_set_drvdata(dev, NULL);

if (priv) {
struct pci_serial_quirk *quirk;
int i;

for (i = 0; i < priv->nr; i++)
serial8250_unregister_port(priv->line[i]);
for (i = 0; i < priv->nr; i++)
serial8250_unregister_port(priv->line[i]);

for (i = 0; i < PCI_NUM_BAR_RESOURCES; i++) {
if (priv->remapped_bar[i])
iounmap(priv->remapped_bar[i]);
priv->remapped_bar[i] = NULL;
}
for (i = 0; i < PCI_NUM_BAR_RESOURCES; i++) {
if (priv->remapped_bar[i])
iounmap(priv->remapped_bar[i]);
priv->remapped_bar[i] = NULL;
}

/*
* Find the exit quirks.
*/
quirk = find_quirk(dev);
if (quirk->exit)
quirk->exit(dev);
/*
* Find the exit quirks.
*/
quirk = find_quirk(dev);
if (quirk->exit)
quirk->exit(dev);

pci_disable_device(dev);
pci_disable_device(dev);

kfree(priv);
}
kfree(priv);
}

static int pciserial_suspend_one(struct pci_dev *dev, pm_message_t state)
Expand Down

0 comments on commit 0fcc978

Please sign in to comment.