Guest User

Kernel 3.2 bladeRF fix by cbalke

a guest
Aug 6th, 2013
309
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. The problem with bladerf on kernel 3.2 and below is that the module_usb_driver macro is missing on older kernels.
  2. The fix below basically bypasses the macro
  3. If someone can put this onto github it would be helpful.
  4. I tested this patch on kernel 3.2.6
  5.  
  6.  
  7. To fix this problem with kernel 3.2 and below...
  8.  
  9. Replace this line :
  10.  
  11. module_usb_driver(bladerf_driver);
  12.  
  13. ------------------with the lines below-------------
  14.  
  15. static int __init bladerf_init(void)
  16. {
  17. return usb_register(&bladerf_driver);
  18. }
  19. static void __exit bladerf_exit(void)
  20. {
  21. usb_deregister(&bladerf_driver);
  22. }
  23. module_init(bladerf_init);
  24. module_exit(bladerf_exit);
Advertisement
Add Comment
Please, Sign In to add comment