mirror of the now-defunct rocklinux.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

41 lines
2.0 KiB

  1. Matan Ziv-Av:
  2. - Addition of parent parameter to class_device_create().
  3. - Removal of PCI_ID_VENDOR_RENDITION definition.
  4. diff -ruN svgalib-1.9.24/kernel/svgalib_helper/kernel26compat.h svgalib-1.9.24-new/kernel/svgalib_helper/kernel26compat.h
  5. --- svgalib-1.9.24/kernel/svgalib_helper/kernel26compat.h 2005-11-04 23:33:00.000000000 +0100
  6. +++ svgalib-1.9.24-new/kernel/svgalib_helper/kernel26compat.h 2006-02-13 21:01:11.000000000 +0100
  7. @@ -84,6 +84,7 @@
  8. # define SLH_SYSFS_REGISTER \
  9. svgalib_helper_class = class_create(THIS_MODULE, "svgalib_helper");
  10. +#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,15)
  11. # define SLH_SYSFS_ADD_CONTROL \
  12. class_device_create(svgalib_helper_class, \
  13. MKDEV(SVGALIB_HELPER_MAJOR, 0), \
  14. @@ -93,6 +94,17 @@
  15. class_device_create(svgalib_helper_class, \
  16. MKDEV(SVGALIB_HELPER_MAJOR, _minor), \
  17. &sh_pci_devs[_minor]->dev->dev, _name);
  18. +#else /* 2.6.15 changed class_device_create */
  19. +# define SLH_SYSFS_ADD_CONTROL \
  20. + class_device_create(svgalib_helper_class, NULL, \
  21. + MKDEV(SVGALIB_HELPER_MAJOR, 0), \
  22. + NULL, "svga");
  23. +
  24. +# define SLH_SYSFS_ADD_DEVICE(_name, _minor) \
  25. + class_device_create(svgalib_helper_class, NULL, \
  26. + MKDEV(SVGALIB_HELPER_MAJOR, _minor), \
  27. + &sh_pci_devs[_minor]->dev->dev, _name);
  28. +#endif /* 2.6.15 */
  29. # define SLH_SYSFS_REMOVE_DEVICE(i) \
  30. class_destroy(svgalib_helper_class);
  31. @@ -140,3 +152,7 @@
  32. #if !defined(MODULE_VERSION)
  33. # define MODULE_VERSION(x)
  34. #endif
  35. +
  36. +#ifndef PCI_VENDOR_ID_RENDITION
  37. +#define PCI_VENDOR_ID_RENDITION 0x1163
  38. +#endif