Description: Remove __devinit/__devexit for Linux 3.8 Author: Simon Richter Last-Update: 2013-03-11 Index: langford-0.0.20130228/langford.c =================================================================== --- langford-0.0.20130228.orig/langford.c +++ langford-0.0.20130228/langford.c @@ -925,7 +925,7 @@ static void reset_dma(void) { Be sure to perform the exact opposite of this function in driver_remove */ -static int __devinit driver_probe(struct pci_dev *dev, const struct pci_device_id *id) { +static int driver_probe(struct pci_dev *dev, const struct pci_device_id *id) { int rc; printk(KERN_INFO DRIVER_NAME " Probing and setting up device...\n"); @@ -1053,7 +1053,7 @@ exit_func: Be sure to undo all the changes made by driver_probe */ -static void __devexit driver_remove(struct pci_dev *dev) { +static void driver_remove(struct pci_dev *dev) { printk(KERN_INFO DRIVER_NAME " Removing device...\n"); reset_dma(); pci_iounmap(dev, DevPrivData->pBar1); @@ -1076,7 +1076,7 @@ static struct pci_driver driver_pci_driv .name = DRIVER_NAME, .id_table = driver_ids, .probe = driver_probe, - .remove = __devexit_p(driver_remove), + .remove = driver_remove, };