summaryrefslogtreecommitdiff
path: root/kernel-devel/module-basics/vain_pci/vain_pci_orig.c
diff options
context:
space:
mode:
authorManuel Traut <manut@linutronix.de>2018-04-19 21:38:19 +0200
committerJohn Ogness <john.ogness@linutronix.de>2018-04-19 22:08:53 +0200
commit3ab83d968bb38303162441f2c0805ca4703d5b66 (patch)
treef0c3b419073f920e2ee42eaa0a1c70a866737505 /kernel-devel/module-basics/vain_pci/vain_pci_orig.c
parent64516f9cc4a3ecc3c75b158227d523addc33f386 (diff)
kernel/devel - module: fix driver examples
remove devinit for probe and devexit for unregister functions add __init and __exit for init and exit functions Signed-off-by: Manuel Traut <manut@linutronix.de>
Diffstat (limited to 'kernel-devel/module-basics/vain_pci/vain_pci_orig.c')
-rw-r--r--kernel-devel/module-basics/vain_pci/vain_pci_orig.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel-devel/module-basics/vain_pci/vain_pci_orig.c b/kernel-devel/module-basics/vain_pci/vain_pci_orig.c
index 1d757e1..58cb532 100644
--- a/kernel-devel/module-basics/vain_pci/vain_pci_orig.c
+++ b/kernel-devel/module-basics/vain_pci/vain_pci_orig.c
@@ -18,7 +18,7 @@ static struct pci_device_id vain_pci_ids[] __devinitdata = {
};
MODULE_DEVICE_TABLE(pci, vain_pci_ids);
-static int __devinit vain_pci_probe(struct pci_dev *pdev,
+static int vain_pci_probe(struct pci_dev *pdev,
const struct pci_device_id *ent)
{
struct vain_pci_info *info;
@@ -68,7 +68,7 @@ err_free:
return ret;
}
-static void __devexit vain_pci_remove(struct pci_dev *pdev)
+static void vain_pci_remove(struct pci_dev *pdev)
{
struct vain_pci_info *info = pci_get_drvdata(pdev);