170-bus_id_removal.patch 740 B

123456789101112131415161718192021222324252627282930
  1. --- a/tn7dsl.c
  2. +++ b/tn7dsl.c
  3. @@ -117,6 +117,7 @@
  4. #include <linux/vmalloc.h>
  5. #include <linux/file.h>
  6. #include <linux/firmware.h>
  7. +#include <linux/version.h>
  8. #include <asm/io.h>
  9. #include <asm/ar7/ar7.h>
  10. @@ -492,7 +493,9 @@ static void avsar_release(struct device
  11. }
  12. static struct device avsar = {
  13. +#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,30)
  14. .bus_id = "vlynq",
  15. +#endif
  16. .release = avsar_release,
  17. };
  18. @@ -501,6 +504,9 @@ int shim_osLoadFWImage(unsigned char *pt
  19. const struct firmware *fw_entry;
  20. size_t size;
  21. +#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,30)
  22. + dev_set_name(&avsar, "avsar");
  23. +#endif
  24. printk("requesting firmware image \"ar0700xx.bin\"\n");
  25. if(device_register(&avsar) < 0) {
  26. printk(KERN_ERR