diff options
| author | Manuel Traut <manut@linutronix.de> | 2018-04-19 21:38:19 +0200 |
|---|---|---|
| committer | John Ogness <john.ogness@linutronix.de> | 2018-04-19 22:08:53 +0200 |
| commit | 3ab83d968bb38303162441f2c0805ca4703d5b66 (patch) | |
| tree | f0c3b419073f920e2ee42eaa0a1c70a866737505 /kernel-devel/module-basics/vain_pci/vain_pci_4.c | |
| parent | 64516f9cc4a3ecc3c75b158227d523addc33f386 (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_4.c')
| -rw-r--r-- | kernel-devel/module-basics/vain_pci/vain_pci_4.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel-devel/module-basics/vain_pci/vain_pci_4.c b/kernel-devel/module-basics/vain_pci/vain_pci_4.c index f238f22..518cb96 100644 --- a/kernel-devel/module-basics/vain_pci/vain_pci_4.c +++ b/kernel-devel/module-basics/vain_pci/vain_pci_4.c @@ -8,7 +8,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); |
