| 1 |
Description: Remove __devinit/__devexit for Linux 3.8 |
| 2 |
Author: Simon Richter <[email protected]> |
| 3 |
Last-Update: 2013-03-11 |
| 4 |
|
| 5 |
Index: langford-0.0.20130228/langford.c |
| 6 |
=================================================================== |
| 7 |
--- langford-0.0.20130228.orig/langford.c |
| 8 |
+++ langford-0.0.20130228/langford.c |
| 9 |
@@ -925,7 +925,7 @@ static void reset_dma(void) { |
| 10 |
|
| 11 |
Be sure to perform the exact opposite of this function in driver_remove |
| 12 |
*/ |
| 13 |
|
| 14 |
+static int driver_probe(struct pci_dev *dev, const struct pci_device_id *id) { |
| 15 |
int rc; |
| 16 |
|
| 17 |
printk(KERN_INFO DRIVER_NAME " Probing and setting up device...\n"); |
| 18 |
@@ -1053,7 +1053,7 @@ exit_func: |
| 19 |
|
| 20 |
Be sure to undo all the changes made by driver_probe |
| 21 |
*/ |
| 22 |
|
| 23 |
+static void driver_remove(struct pci_dev *dev) { |
| 24 |
printk(KERN_INFO DRIVER_NAME " Removing device...\n"); |
| 25 |
reset_dma(); |
| 26 |
pci_iounmap(dev, DevPrivData->pBar1); |
| 27 |
@@ -1076,7 +1076,7 @@ static struct pci_driver driver_pci_driv |
| 28 |
.name = DRIVER_NAME, |
| 29 |
.id_table = driver_ids, |
| 30 |
.probe = driver_probe, |
| 31 |
|
| 32 |
+ .remove = driver_remove, |
| 33 |
}; |
| 34 |
|
| 35 |
|