summaryrefslogtreecommitdiff
path: root/kernel-devel/module-basics/vain_pci/vain_pci_2.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_2.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_2.c')
-rw-r--r--kernel-devel/module-basics/vain_pci/vain_pci_2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel-devel/module-basics/vain_pci/vain_pci_2.c b/kernel-devel/module-basics/vain_pci/vain_pci_2.c
index cc4118d..e0cb791 100644
--- a/kernel-devel/module-basics/vain_pci/vain_pci_2.c
+++ b/kernel-devel/module-basics/vain_pci/vain_pci_2.c
@@ -1,4 +1,4 @@
-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;