pch_phub.c (80c8ae289266529445fad030fabf5fcf01ccda0d) | pch_phub.c (486a5c28c2e7d6a80c393ac7d612b77d80447b84) |
---|---|
1/* 2 * Copyright (C) 2011 LAPIS Semiconductor Co., Ltd. 3 * 4 * This program is free software; you can redistribute it and/or modify 5 * it under the terms of the GNU General Public License as published by 6 * the Free Software Foundation; version 2 of the License. 7 * 8 * This program is distributed in the hope that it will be useful, --- 805 unchanged lines hidden (view full) --- 814err_req_regions: 815 pci_disable_device(pdev); 816err_pci_enable_dev: 817 kfree(chip); 818 dev_err(&pdev->dev, "%s returns %d\n", __func__, ret); 819 return ret; 820} 821 | 1/* 2 * Copyright (C) 2011 LAPIS Semiconductor Co., Ltd. 3 * 4 * This program is free software; you can redistribute it and/or modify 5 * it under the terms of the GNU General Public License as published by 6 * the Free Software Foundation; version 2 of the License. 7 * 8 * This program is distributed in the hope that it will be useful, --- 805 unchanged lines hidden (view full) --- 814err_req_regions: 815 pci_disable_device(pdev); 816err_pci_enable_dev: 817 kfree(chip); 818 dev_err(&pdev->dev, "%s returns %d\n", __func__, ret); 819 return ret; 820} 821 |
822static void __devexit pch_phub_remove(struct pci_dev *pdev) | 822static void pch_phub_remove(struct pci_dev *pdev) |
823{ 824 struct pch_phub_reg *chip = pci_get_drvdata(pdev); 825 826 sysfs_remove_file(&pdev->dev.kobj, &dev_attr_pch_mac.attr); 827 sysfs_remove_bin_file(&pdev->dev.kobj, &pch_bin_attr); 828 pci_iounmap(pdev, chip->pch_phub_base_address); 829 pci_release_regions(pdev); 830 pci_disable_device(pdev); --- 69 unchanged lines hidden --- | 823{ 824 struct pch_phub_reg *chip = pci_get_drvdata(pdev); 825 826 sysfs_remove_file(&pdev->dev.kobj, &dev_attr_pch_mac.attr); 827 sysfs_remove_bin_file(&pdev->dev.kobj, &pch_bin_attr); 828 pci_iounmap(pdev, chip->pch_phub_base_address); 829 pci_release_regions(pdev); 830 pci_disable_device(pdev); --- 69 unchanged lines hidden --- |