Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 210843
b: refs/heads/master
c: e3671ac
h: refs/heads/master
i:
  210841: 5016c6e
  210839: 9f3b599
v: v3
  • Loading branch information
Feng Tang authored and Greg Kroah-Hartman committed Sep 20, 2010
1 parent 109ba12 commit a9b5433
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 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: 476f771cb9b6cd4845dcd18f16a2f03a89ee63fc
refs/heads/master: e3671ac429fe50cf0c1b4f1dc4b7237207f1d956
17 changes: 9 additions & 8 deletions trunk/drivers/serial/mfd.c
Original file line number Diff line number Diff line change
Expand Up @@ -1423,7 +1423,6 @@ static void hsu_global_init(void)
}

phsu = hsu;

hsu_debugfs_init(hsu);
return;

Expand All @@ -1435,18 +1434,20 @@ static void hsu_global_init(void)

static void serial_hsu_remove(struct pci_dev *pdev)
{
struct hsu_port *hsu;
int i;
void *priv = pci_get_drvdata(pdev);
struct uart_hsu_port *up;

hsu = pci_get_drvdata(pdev);
if (!hsu)
if (!priv)
return;

for (i = 0; i < 3; i++)
uart_remove_one_port(&serial_hsu_reg, &hsu->port[i].port);
/* For port 0/1/2, priv is the address of uart_hsu_port */
if (pdev->device != 0x081E) {
up = priv;
uart_remove_one_port(&serial_hsu_reg, &up->port);
}

pci_set_drvdata(pdev, NULL);
free_irq(hsu->irq, hsu);
free_irq(pdev->irq, priv);
pci_disable_device(pdev);
}

Expand Down

0 comments on commit a9b5433

Please sign in to comment.