aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/misc
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/misc')
-rw-r--r--drivers/misc/pti.c32
1 files changed, 16 insertions, 16 deletions
diff --git a/drivers/misc/pti.c b/drivers/misc/pti.c
index 3bfc8e37cb51..4a24421136a3 100644
--- a/drivers/misc/pti.c
+++ b/drivers/misc/pti.c
@@ -393,22 +393,6 @@ void pti_writedata(struct pti_masterchannel *mc, u8 *buf, int count)
393} 393}
394EXPORT_SYMBOL_GPL(pti_writedata); 394EXPORT_SYMBOL_GPL(pti_writedata);
395 395
396/**
397 * pti_pci_remove()- Driver exit method to remove PTI from
398 * PCI bus.
399 * @pdev: variable containing pci info of PTI.
400 */
401static void __devexit pti_pci_remove(struct pci_dev *pdev)
402{
403 struct pti_dev *drv_data = pci_get_drvdata(pdev);
404
405 iounmap(drv_data->pti_ioaddr);
406 pci_set_drvdata(pdev, NULL);
407 kfree(drv_data);
408 pci_release_region(pdev, 1);
409 pci_disable_device(pdev);
410}
411
412/* 396/*
413 * for the tty_driver_*() basic function descriptions, see tty_driver.h. 397 * for the tty_driver_*() basic function descriptions, see tty_driver.h.
414 * Specific header comments made for PTI-related specifics. 398 * Specific header comments made for PTI-related specifics.
@@ -881,6 +865,22 @@ static int __devinit pti_pci_probe(struct pci_dev *pdev,
881 return retval; 865 return retval;
882} 866}
883 867
868/**
869 * pti_pci_remove()- Driver exit method to remove PTI from
870 * PCI bus.
871 * @pdev: variable containing pci info of PTI.
872 */
873static void __devexit pti_pci_remove(struct pci_dev *pdev)
874{
875 struct pti_dev *drv_data = pci_get_drvdata(pdev);
876
877 iounmap(drv_data->pti_ioaddr);
878 pci_set_drvdata(pdev, NULL);
879 kfree(drv_data);
880 pci_release_region(pdev, 1);
881 pci_disable_device(pdev);
882}
883
884static struct pci_driver pti_pci_driver = { 884static struct pci_driver pti_pci_driver = {
885 .name = PCINAME, 885 .name = PCINAME,
886 .id_table = pci_ids, 886 .id_table = pci_ids,