LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   pci_module_init removed from kernel! (https://www.linuxquestions.org/questions/linux-software-2/pci_module_init-removed-from-kernel-597802/)

binarybob0001 11-07-2007 11:23 AM

pci_module_init removed from kernel!
 
I just want to compile my Ralink driver, but the function has since been removed from the kernel source. Is there a patch out that fixes this now missing function?

osor 11-07-2007 12:52 PM

The function has been obsoleted by pci_register_driver() for awhile now. They probably just finally removed it.

The fix is simple. In the affected source file, change all occurrences of pci_module_init() to pci_register_driver(), or add this line at the beginning:
Code:

#define pci_module_init pci_register_driver


All times are GMT -5. The time now is 01:04 PM.