Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 105723
b: refs/heads/master
c: ea881d6
h: refs/heads/master
i:
  105721: a13005c
  105719: 94d7198
v: v3
  • Loading branch information
Bartlomiej Zolnierkiewicz committed Jul 24, 2008
1 parent 1e979f3 commit 086a885
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 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: 64b0fed31d6704e4e2e42e9a1ac5995b0a1b54e4
refs/heads/master: ea881d6d6c58aa6d56105d1faba7432243ea7118
17 changes: 16 additions & 1 deletion trunk/drivers/ide/pci/tc86c001.c
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,13 @@ static int __devinit tc86c001_init_one(struct pci_dev *dev,
return rc;
}

static void __devexit tc86c001_remove(struct pci_dev *dev)
{
ide_pci_remove(dev);
pci_release_region(dev, 5);
pci_disable_device(dev);
}

static const struct pci_device_id tc86c001_pci_tbl[] = {
{ PCI_VDEVICE(TOSHIBA_2, PCI_DEVICE_ID_TOSHIBA_TC86C001_IDE), 0 },
{ 0, }
Expand All @@ -241,14 +248,22 @@ MODULE_DEVICE_TABLE(pci, tc86c001_pci_tbl);
static struct pci_driver driver = {
.name = "TC86C001",
.id_table = tc86c001_pci_tbl,
.probe = tc86c001_init_one
.probe = tc86c001_init_one,
.remove = tc86c001_remove,
};

static int __init tc86c001_ide_init(void)
{
return ide_pci_register_driver(&driver);
}

static void __exit tc86c001_ide_exit(void)
{
pci_unregister_driver(&driver);
}

module_init(tc86c001_ide_init);
module_exit(tc86c001_ide_exit);

MODULE_AUTHOR("MontaVista Software, Inc. <source@mvista.com>");
MODULE_DESCRIPTION("PCI driver module for TC86C001 IDE");
Expand Down

0 comments on commit 086a885

Please sign in to comment.