200-2.6.37_args.patch 836 B

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