Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 325637
b: refs/heads/master
c: c6333cc
h: refs/heads/master
i:
  325635: f2fa88e
v: v3
  • Loading branch information
Jiri Slaby authored and Greg Kroah-Hartman committed Aug 10, 2012
1 parent a9c7344 commit d06fc93
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 10 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: d15684228a1f82555fcd3c5fcd86a0884bad29e3
refs/heads/master: c6333cc65d12fddf9cf79de3950b65bc142784e1
15 changes: 6 additions & 9 deletions trunk/drivers/misc/pti.c
Original file line number Diff line number Diff line change
Expand Up @@ -400,16 +400,13 @@ EXPORT_SYMBOL_GPL(pti_writedata);
*/
static void __devexit pti_pci_remove(struct pci_dev *pdev)
{
struct pti_dev *drv_data;
struct pti_dev *drv_data = pci_get_drvdata(pdev);

drv_data = pci_get_drvdata(pdev);
if (drv_data != NULL) {
pci_iounmap(pdev, drv_data->pti_ioaddr);
pci_set_drvdata(pdev, NULL);
kfree(drv_data);
pci_release_region(pdev, 1);
pci_disable_device(pdev);
}
pci_iounmap(pdev, drv_data->pti_ioaddr);
pci_set_drvdata(pdev, NULL);
kfree(drv_data);
pci_release_region(pdev, 1);
pci_disable_device(pdev);
}

/*
Expand Down

0 comments on commit d06fc93

Please sign in to comment.