200-2.6.37_args.patch 963 B

123456789101112131415161718192021222324252627282930313233343536
  1. --- a/tn7atm.c
  2. +++ b/tn7atm.c
  3. @@ -2009,7 +2009,11 @@ static int __init tn7atm_register (Tn7At
  4. dgprintf (4, "device %s being registered\n", priv->name);
  5. + #if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,37)
  6. mydev = atm_dev_register (priv->proc_name, &tn7atm_ops, -1, NULL);
  7. + #else
  8. + mydev = atm_dev_register (priv->proc_name, NULL, &tn7atm_ops, -1, NULL);
  9. + #endif
  10. if (mydev == NULL)
  11. {
  12. --- a/tn7dsl.c
  13. +++ b/tn7dsl.c
  14. @@ -512,14 +512,17 @@ int shim_osLoadFWImage(unsigned char *pt
  15. {
  16. const struct firmware *fw_entry;
  17. size_t size;
  18. + int ret;
  19. #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,30)
  20. dev_set_name(&avsar, "avsar");
  21. #endif
  22. printk("requesting firmware image \"ar0700xx.bin\"\n");
  23. - if(device_register(&avsar) < 0) {
  24. + dev_set_name(&avsar, "avsar");
  25. + ret = device_register(&avsar);
  26. + if (ret < 0) {
  27. printk(KERN_ERR
  28. - "avsar: device_register fails\n");
  29. + "avsar: device_register fails, error%i\n", ret);
  30. return -1;
  31. }