Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 259336
b: refs/heads/master
c: e463595
h: refs/heads/master
v: v3
  • Loading branch information
Alexander Stein authored and Greg Kroah-Hartman committed Jul 8, 2011
1 parent 7c0ca47 commit a2bc21c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 7b292b4bf9a9d6098440d85616d6ca4c608b8304
refs/heads/master: e463595fd9c752fa4bf06b47df93ef9ade3c7cf0
5 changes: 5 additions & 0 deletions trunk/drivers/tty/serial/pch_uart.c
Original file line number Diff line number Diff line change
Expand Up @@ -1426,6 +1426,8 @@ static struct eg20t_port *pch_uart_init_port(struct pci_dev *pdev,
goto init_port_hal_free;
}

pci_enable_msi(pdev);

iobase = pci_resource_start(pdev, 0);
mapbase = pci_resource_start(pdev, 1);
priv->mapbase = mapbase;
Expand Down Expand Up @@ -1482,6 +1484,8 @@ static void pch_uart_pci_remove(struct pci_dev *pdev)
struct eg20t_port *priv;

priv = (struct eg20t_port *)pci_get_drvdata(pdev);

pci_disable_msi(pdev);
pch_uart_exit_port(priv);
pci_disable_device(pdev);
kfree(priv);
Expand Down Expand Up @@ -1565,6 +1569,7 @@ static int __devinit pch_uart_pci_probe(struct pci_dev *pdev,
return ret;

probe_disable_device:
pci_disable_msi(pdev);
pci_disable_device(pdev);
probe_error:
return ret;
Expand Down

0 comments on commit a2bc21c

Please sign in to comment.